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

Side by Side Diff: sky/tests/lowlevel/attribute-collection.sky

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://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
« no previous file with comments | « sky/tests/lowlevel/attribute-collection.html ('k') | sky/tests/lowlevel/camel-case.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <link rel="import" href="../resources/mocha.html" /> 2 <link rel="import" href="../resources/mocha.sky" />
3 <link rel="import" href="../resources/chai.html" /> 3 <link rel="import" href="../resources/chai.sky" />
4 <script> 4 <script>
5 describe("Attribute collection", function() { 5 describe("Attribute collection", function() {
6 var div; 6 var div;
7 beforeEach(function() { 7 beforeEach(function() {
8 div = document.createElement("div"); 8 div = document.createElement("div");
9 }); 9 });
10 10
11 it("should get by index", function() { 11 it("should get by index", function() {
12 div.setAttribute("attr0", "value0"); 12 div.setAttribute("attr0", "value0");
13 div.setAttribute("attr1", "value1"); 13 div.setAttribute("attr1", "value1");
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 assert.equal(div.attributes[1].name, "attr2"); 47 assert.equal(div.attributes[1].name, "attr2");
48 div.setAttribute("attr3", ""); 48 div.setAttribute("attr3", "");
49 div.setAttribute("attr2", "value2"); 49 div.setAttribute("attr2", "value2");
50 assert.equal(div.attributes.length, 3); 50 assert.equal(div.attributes.length, 3);
51 assert.equal(div.attributes[2].name, "attr3"); 51 assert.equal(div.attributes[2].name, "attr3");
52 assert.equal(div.attributes.attr2.value, "value2"); 52 assert.equal(div.attributes.attr2.value, "value2");
53 }); 53 });
54 }); 54 });
55 </script> 55 </script>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « sky/tests/lowlevel/attribute-collection.html ('k') | sky/tests/lowlevel/camel-case.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698