From: dhrname Date: Mon, 2 Feb 2015 14:30:05 +0000 (+0900) Subject: Modify the Spec for a parse method X-Git-Tag: version22~335 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=47b5756ab9c21e5b5959ad9581b5a3eae5b5f5ae;p=sie%2Fsie.git Modify the Spec for a parse method --- diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 856c58c..48b37b3 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -2334,10 +2334,10 @@ describe("SMIL Animation Spec", function() { expect(begin.parse().begin).toEqual(0); begin.string = "1"; expect(begin.parse().begin).toEqual(1000); - begin.string = "+1ms"; - expect(begin.parse().begin).toEqual(1); - begin.string = "-1ms"; - expect(begin.parse().begin).toEqual(-1); + begin.string = "+0ms"; + expect(begin.parse().begin).toEqual(0); + begin.string = "-0ms"; + expect(begin.parse().begin).toEqual(0); } ); /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ it("should be this for the value (the valid partion)", function() { @@ -2347,6 +2347,10 @@ describe("SMIL Animation Spec", function() { begin.isResolved = false; expect(begin.parse().begin).toEqual(0); expect(begin.isResolved).toBeFalsy(); + begin.string = "1ms"; + begin.isResolved = false; + expect(begin.parse().begin).toEqual(1); + expect(begin.isResolved).toBeTruthy(); } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion)", function() {