OSDN Git Service

Modify the Spec for a parse method
authordhrname <dhrname@users.sourceforge.jp>
Mon, 2 Feb 2015 14:30:05 +0000 (23:30 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Mon, 2 Feb 2015 14:30:05 +0000 (23:30 +0900)
tool/Spec/spec/SvgDomSpec.js

index 856c58c..48b37b3 100644 (file)
@@ -2334,10 +2334,10 @@ describe("SMIL Animation Spec", function() {
         expect(begin.parse().begin).toEqual(0);\r
         begin.string = "1";\r
         expect(begin.parse().begin).toEqual(1000);\r
-        begin.string = "+1ms";\r
-        expect(begin.parse().begin).toEqual(1);\r
-        begin.string = "-1ms";\r
-        expect(begin.parse().begin).toEqual(-1);\r
+        begin.string = "+0ms";\r
+        expect(begin.parse().begin).toEqual(0);\r
+        begin.string = "-0ms";\r
+        expect(begin.parse().begin).toEqual(0);\r
      } );\r
       /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
       it("should be this for the value (the valid partion)", function() {\r
@@ -2347,6 +2347,10 @@ describe("SMIL Animation Spec", function() {
         begin.isResolved = false;\r
         expect(begin.parse().begin).toEqual(0);\r
         expect(begin.isResolved).toBeFalsy();\r
+        begin.string = "1ms";\r
+        begin.isResolved = false;\r
+        expect(begin.parse().begin).toEqual(1);\r
+        expect(begin.isResolved).toBeTruthy();\r
       } );\r
       /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/\r
       it("should be this for the value (the invalid partion)", function() {\r