From 717548c9d93a7bf159dc5e3beccbac78b1cd2fb4 Mon Sep 17 00:00:00 2001 From: dhrname Date: Sun, 10 Mar 2013 21:42:17 +0900 Subject: [PATCH] =?utf8?q?getElementById=E3=83=A1=E3=82=BD=E3=83=83?= =?utf8?q?=E3=83=89=E3=81=AE=E7=84=A1=E5=8A=B9=E5=90=8C=E5=80=A4=E3=82=AF?= =?utf8?q?=E3=83=A9=E3=82=B9=E3=81=AE=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tool/Spec/spec/SvgDomSpec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 390c899..972f25f 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -1912,5 +1912,21 @@ describe("SVG Spec in JavaScript", function() { expect(c.firstChild).not.toBe(ele.firstChild); expect(c.lastChild).not.toBe(ele.lastChild); }); + /*getElementByIdメソッドの同値分割をして、無効同値クラスを調べておく (Equivalence partitioning, the following is the invalid partion)*/ + it("should be this for the value, when it calls a getElementById method (the invalid partion)", function() { + var t = [Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY, Number.NaN, {}, [], undefined, null, 0, -1, 11, 1.1, 10.1]; + for (var i=0;i