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

Side by Side Diff: client/tests/client/dom/WindowNSMETest.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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('WindowNSMETest'); 5 #library('WindowNSMETest');
6 #import('../../../testing/unittest/unittest.dart'); 6 #import('../../../testing/unittest/unittest_dom.dart');
7 #import('dart:dom', prefix: 'dom'); 7 #import('dart:dom', prefix: 'dom');
8 8
9 // Not defined in dom.Window. 9 // Not defined in dom.Window.
10 foo(x) => x; 10 foo(x) => x;
11 11
12 class Unused { 12 class Unused {
13 foo(x) => 'not $x'; 13 foo(x) => 'not $x';
14 } 14 }
15 15
16 int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1)); 16 int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1));
(...skipping 26 matching lines...) Expand all
43 try { 43 try {
44 String x = dom.window.foo(message); 44 String x = dom.window.foo(message);
45 Expect.fail('Should not reach here: $x'); 45 Expect.fail('Should not reach here: $x');
46 } catch (NoSuchMethodException e) { 46 } catch (NoSuchMethodException e) {
47 // Expected exception. 47 // Expected exception.
48 } catch (Exception e) { 48 } catch (Exception e) {
49 Expect.fail('Wrong exception: $e'); 49 Expect.fail('Wrong exception: $e');
50 } 50 }
51 }); 51 });
52 } 52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698