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

Side by Side Diff: client/tests/client/dom/HiddenDom2Test.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('HiddenDom2Test'); 1 #library('HiddenDom2Test');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_html.dart');
3 #import('dart:html'); 3 #import('dart:html');
4 4
5 // Test that the dart:html API does not leak native jsdom methods: 5 // Test that the dart:html API does not leak native jsdom methods:
6 // appendChild operation. 6 // appendChild operation.
7 7
8 main() { 8 main() {
9 forLayoutTests(); 9 forLayoutTests();
10 10
11 test('test1', () { 11 test('test1', () {
12 document.body.elements.add(new Element.html(@''' 12 document.body.elements.add(new Element.html(@'''
(...skipping 25 matching lines...) Expand all
38 action(); 38 action();
39 } catch (var e) { 39 } catch (var e) {
40 threw = true; 40 threw = true;
41 ex = e; 41 ex = e;
42 } 42 }
43 if (!threw) 43 if (!threw)
44 Expect.fail('Action should have thrown exception'); 44 Expect.fail('Action should have thrown exception');
45 45
46 Expect.isTrue(ex is NoSuchMethodException, 'ex is NoSuchMethodException'); 46 Expect.isTrue(ex is NoSuchMethodException, 'ex is NoSuchMethodException');
47 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698