Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Side by Side Diff: sky/tests/lowlevel/query-selector.sky

Issue 694423002: Replace <link rel="import"> with <import> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698