OLD | NEW |
1 <html> | 1 <html> |
2 <link rel="import" href="../resources/mocha.sky" /> | 2 <import src="../resources/mocha.sky" /> |
3 <link rel="import" href="../resources/chai.sky" /> | 3 <import src="../resources/chai.sky" /> |
4 <div id="tests"> | 4 <div id="tests"> |
5 <div id="id1"> | 5 <div id="id1"> |
6 <div class="class2"></div> | 6 <div class="class2"></div> |
7 </div> | 7 </div> |
8 <tag-name-3 class="class7" id="tag1"></tag-name-3> | 8 <tag-name-3 class="class7" id="tag1"></tag-name-3> |
9 <tag-name-3 class="class7" id="tag2"></tag-name-3> | 9 <tag-name-3 class="class7" id="tag2"></tag-name-3> |
10 <span class="class2"> | 10 <span class="class2"> |
11 <span class="class5" id="id5"></span> | 11 <span class="class5" id="id5"></span> |
12 </span> | 12 </span> |
13 <div id="id5"></div> | 13 <div id="id5"></div> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 }); | 53 }); |
54 it("should find all elements by compound selector", function() { | 54 it("should find all elements by compound selector", function() { |
55 assert.ok(queryAll("tag-name-3.class7")); | 55 assert.ok(queryAll("tag-name-3.class7")); |
56 assert.equal(queryAll("tag-name-3.class7").length, 3); | 56 assert.equal(queryAll("tag-name-3.class7").length, 3); |
57 assert.equal(queryAll("tag-name-3.class7")[0].id, "tag1"); | 57 assert.equal(queryAll("tag-name-3.class7")[0].id, "tag1"); |
58 assert.equal(queryAll("tag-name-3.class7")[1].id, "tag2"); | 58 assert.equal(queryAll("tag-name-3.class7")[1].id, "tag2"); |
59 }); | 59 }); |
60 }); | 60 }); |
61 </script> | 61 </script> |
62 </html> | 62 </html> |
OLD | NEW |