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

Unified Diff: frog/tests/htmltest.dart

Issue 8937017: New CSS parser written in Dart to replace pyparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Put back for DartC Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: frog/tests/htmltest.dart
diff --git a/frog/tests/htmltest.dart b/frog/tests/htmltest.dart
index 16661cf8e041f857ad5355309ccc6e6ac3b56125..abed6f64d06afc1c817393aec604ad273c14c2d6 100644
--- a/frog/tests/htmltest.dart
+++ b/frog/tests/htmltest.dart
@@ -5,14 +5,14 @@
#import("dart:html");
void main() {
- var element = document.createElement('div');
- element.innerHTML = "Hello from Dart!";
- document.body.nodes.add(element);
+ var element = new Element.tag('div');
+ element.text = "Hello from Dart!";
+ document.body.elements.add(element);
- CanvasElement canvas = document.createElement('canvas');
+ CanvasElement canvas = new Element.tag('canvas');
canvas.width = 100;
canvas.height = 100;
- document.body.nodes.add(canvas);
+ document.body.elements.add(canvas);
var context = canvas.getContext('2d');
context.fillRect(10, 10, 20, 20);
« no previous file with comments | « frog/file_system_node.dart ('k') | frog/tree.dart » ('j') | utils/css/generate.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698