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

Side by Side Diff: client/testing/unittest/dom_for_unittest.dart

Issue 9600035: Enable new dart:html wrapperless frog bindings and wrapper dartium bindings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle all code review comments 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
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
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.
4
5 #library("dom_for_unittest");
6 #native("dom_for_unittest.js");
7
8 class Window {
9 Window();
10
11 void postMessage(String message, String origin) {
12 _postMessage(message, origin);
13 }
14
15 static void _postMessage(String message, String origin) native;
16 }
17
18 class HTMLDocument {
19 HTMLDocument();
20
21 HTMLBodyElement get body() { return new HTMLBodyElement(); }
22 }
23
24 class HTMLBodyElement {
25 HTMLBodyElement();
26
27 void set innerHTML(String html) {
28 _innerHTML(html);
29 }
30
31 static void _innerHTML(String html) native;
32 }
33
34 Window get window() { return new Window(); }
35 HTMLDocument get document() { return new HTMLDocument(); }
OLDNEW
« no previous file with comments | « client/html/src/shared_FactoryProviders.dart ('k') | client/testing/unittest/dom_for_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698