From 4f481a58bdc7580273d92766fa99ad091b218de4 Mon Sep 17 00:00:00 2001 From: dhrname Date: Wed, 8 Apr 2015 21:11:11 +0900 Subject: [PATCH] Modify the Spec --- tool/Spec/spec/SvgDomSpec.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index fb22d62..81242a2 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -3311,11 +3311,12 @@ describe("SMIL Animation Spec", function() { } ); describe("A $attribute object", function() { describe("An push method", function() { - var attr; + var attr, s, p; beforeEach( function() { attr = base("$calcMode").$attribute.up("width"); base("$frame").timelines.length = 0; base("$frame").startTime = Date.now(); + s = document.createElement("animate"); } ); /*境界条件を調べておく (limit value analysis)*/ it("should be this for the value (limit value analysis)", function() { @@ -3325,7 +3326,6 @@ describe("SMIL Animation Spec", function() { expect(attr.element).toBeNull(); expect(attr.frame.timelines.length).toEqual(0); - var s = document.createElement("animate"); attr.push(s); expect(attr.element).toBeNull(); expect(attr.frame.timelines.length).toEqual(0); @@ -3362,8 +3362,12 @@ describe("SMIL Animation Spec", function() { expect(attr.element).toBe(p); expect(attr.frame.timelines.length).toEqual(num); }; - + } ); + /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ + it("should be this for the value (the valid partion on a spline mode )", function() { s.setAttribute("from", "1"); + var p = document.createElement("g"); + p.appendChild(s); var values = [ "0", null, null, null, null, "0", "indefinite" @@ -3399,9 +3403,6 @@ describe("SMIL Animation Spec", function() { expect(act.max).toBe(values[6]); } } ); - /*同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/ - it("should be this for the value (the valid partion on a spline mode )", function() { - } ); /*無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ it("should be this for the value (the invalid partion on a spline mode )", function() { } ); -- 2.11.0