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

Unified Diff: test/css_test.dart

Issue 19497002: Reducing the amount of code we generate in the compiler: We still continue (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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
Index: test/css_test.dart
diff --git a/test/css_test.dart b/test/css_test.dart
index bd77208c5ac5003af558a086aac44bfd16b60fb7..5a6cd8898a9db3b04072b86ad9d7a3f5892b9612 100644
--- a/test/css_test.dart
+++ b/test/css_test.dart
@@ -324,7 +324,7 @@ test_component_var() {
'<meta charset="utf-8">'
'</head>'
'<body>'
- '<element name="x-foo" constructor="Foo">'
+ '<polymer-element name="x-foo" constructor="Foo">'
'<template>'
'<style scoped>'
'@import "foo.css";'
@@ -334,7 +334,7 @@ test_component_var() {
'}'
'</style>'
'</template>'
- '</element>'
+ '</polymer-element>'
'</body>'
'</html>',
'foo.css': r'''@main_color: var(b);
@@ -484,7 +484,7 @@ test_pseudo_element() {
'<x-foo></x-foo>'
'<script type="application/dart">main() {}</script>',
'foo.html': '<head>'
- '<body><element name="x-foo" constructor="Foo">'
+ '<body><polymer-element name="x-foo" constructor="Foo">'
'<template>'
'<div pseudo="x-foo">'
'<div>Test</div>'
@@ -511,14 +511,14 @@ test_pseudo_element() {
'out/index.html_bootstrap.dart',
'out/index.html',
]));
- expect(compiler.output[0].contents.contains(
+ expect(compiler.output.last.contents, contains(
'<div pseudo="x-foo_0">'
'<div>Test</div>'
'</div>'
'<div pseudo="x-foo1_1 x-foo2_2">'
'<div>Test</div>'
- '</div>'), true);
- expect(compiler.output[5].contents.contains(
+ '</div>'));
+ expect(compiler.output.last.contents, contains(
'<style>.test > *[pseudo="x-foo_0"] {\n'
' background-color: #f00;\n'
'}\n'
@@ -528,7 +528,7 @@ test_pseudo_element() {
'.test > *[pseudo="x-foo2_2"] {\n'
' color: #008000;\n'
'}'
- '</style>'), true);
+ '</style>'));
}));
}

Powered by Google App Engine
This is Rietveld 408576698