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

Unified Diff: tests/utils/png_layout_test.dart

Issue 23475003: Further fixes from Safe HTML integration (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« tests/html/html.status ('K') | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/png_layout_test.dart
diff --git a/tests/utils/png_layout_test.dart b/tests/utils/png_layout_test.dart
index 13a30f74f955b02a74cc2d210be94c2ca82586d7..2c986db12f9954ec4df3bde6d8497f12ff84c32e 100644
--- a/tests/utils/png_layout_test.dart
+++ b/tests/utils/png_layout_test.dart
@@ -13,10 +13,10 @@ library layouttest;
import 'dart:html';
main() {
- var div1Style = _style('blue', 20, 10, 40, 10);
- var div2Style = _style('red', 25, 30, 40, 10);
- var div1 = new Element.html('<div style="$div1Style"></div>');
- var div2 = new Element.html('<div style="$div2Style"></div>');
+ var div1 = new DivElement();
+ div1.attributes['style'] = _style('blue', 20, 10, 40, 10);
+ var div2 = new DivElement();
+ div2.attributes['style'] = _style('red', 25, 30, 40, 10);
document.body.children.add(div1);
document.body.children.add(div2);
}
« tests/html/html.status ('K') | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698