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

Side by Side Diff: client/tests/client/dom/HTMLCollectionTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 #library('HTMLCollectionTest'); 1 #library('HTMLCollectionTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 // Test that HTMLCollection implements List<T> 5 // Test that HTMLCollection implements List<T>
6 main() { 6 main() {
7 HTMLElement insertTestDiv() { 7 HTMLElement insertTestDiv() {
8 HTMLElement element = document.createElement('div'); 8 HTMLElement element = document.createElement('div');
9 element.innerHTML = @""" 9 element.innerHTML = @"""
10 <div id='allChecked'> 10 <div id='allChecked'>
11 <input type="checkbox" name="c1" value="1" checked="yes"> 11 <input type="checkbox" name="c1" value="1" checked="yes">
12 <input type="checkbox" name="c2" value="2" checked="yes"> 12 <input type="checkbox" name="c2" value="2" checked="yes">
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 Expect.equals(-1, someChecked.lastIndexOf(someChecked[3], 2)); 267 Expect.equals(-1, someChecked.lastIndexOf(someChecked[3], 2));
268 268
269 Expect.equals(-1, someChecked.lastIndexOf(noneChecked[0], 3)); 269 Expect.equals(-1, someChecked.lastIndexOf(noneChecked[0], 3));
270 Expect.equals(-1, noneChecked.lastIndexOf(someChecked[0], 3)); 270 Expect.equals(-1, noneChecked.lastIndexOf(someChecked[0], 3));
271 Expect.equals(-1, someChecked.lastIndexOf(noneChecked[1], 3)); 271 Expect.equals(-1, someChecked.lastIndexOf(noneChecked[1], 3));
272 Expect.equals(-1, noneChecked.lastIndexOf(someChecked[1], 3)); 272 Expect.equals(-1, noneChecked.lastIndexOf(someChecked[1], 3));
273 273
274 document.body.removeChild(root); 274 document.body.removeChild(root);
275 }); 275 });
276 } 276 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698