svg.setAttributeNS(null, "id", "a");\r
expect(doc.getElementById("a")).toEqual(svg);\r
svg.setAttributeNS(null, "id", "x");\r
+ expect(doc.getElementById("x")).toEqual(svg);\r
expect(doc.getElementById("a")).toBeNull();\r
expect(doc.getElementById("")).toBeNull();\r
});\r
});\r
/*getElementByIdメソッドの同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value, when it calls a getElementById method (the valid partion)", function() {\r
-\r
+ expect(doc.getElementById("ax")).toBeNull();\r
+ expect(doc.getElementById("hoge-hoge")).toBeNull();\r
+ expect(doc.getElementById("a102930")).toBeNull();\r
+ svg.setAttributeNS(null, "id", "ax");\r
+ expect(doc.getElementById("ax")).toEqual(svg);\r
+ svg.setAttributeNS(null, "id", "hoge-hoge");\r
+ expect(doc.getElementById("hoge-hoge")).toEqual(svg);\r
+ svg.setAttributeNS(null, "id", "a102930");\r
+ expect(doc.getElementById("a102930")).toEqual(svg);\r
});\r
/*getElementsByTagNameNSメソッドの同値分割をして、有効同値クラスを調べておく (Equivalence partitioning, the following is the valid partion)*/\r
it("should be this for the value, when it calls a getElementsByTagNameNS method (the valid partion)", function() {\r