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

Unified Diff: test/css_test.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
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
« no previous file with comments | « pubspec.yaml ('k') | test/observable_transform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/css_test.dart
diff --git a/test/css_test.dart b/test/css_test.dart
index 5a6cd8898a9db3b04072b86ad9d7a3f5892b9612..48ea29cd36b0e1b63089ec5ffe78d37118dfbb0e 100644
--- a/test/css_test.dart
+++ b/test/css_test.dart
@@ -37,7 +37,8 @@ test_simple_var() {
}
var messages = new Messages.silent();
- var compiler = createCompiler(createFiles(), messages, errors: true);
+ var compiler = createCompiler(createFiles(), messages, errors: true,
+ scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
@@ -115,7 +116,8 @@ test_var() {
}
var messages = new Messages.silent();
- var compiler = createCompiler(createFiles(), messages, errors: true);
+ var compiler = createCompiler(createFiles(), messages, errors: true,
+ scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
@@ -182,7 +184,8 @@ test_simple_import() {
}
var messages = new Messages.silent();
- var compiler = createCompiler(createFiles(), messages, errors: true);
+ var compiler = createCompiler(createFiles(), messages, errors: true,
+ scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
@@ -253,7 +256,8 @@ test_imports() {
}
var messages = new Messages.silent();
- var compiler = createCompiler(createFiles(), messages, errors: true);
+ var compiler = createCompiler(createFiles(), messages, errors: true,
+ scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
@@ -356,7 +360,8 @@ test_component_var() {
test('var- and Less @define', () {
var messages = new Messages.silent();
- var compiler = createCompiler(createFiles(), messages, errors: true);
+ var compiler = createCompiler(createFiles(), messages, errors: true,
+ scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
@@ -394,10 +399,10 @@ test_component_var() {
' Component x-foo stylesheet \n'
' ==================================================== */\n'
'@import "foo.css";\n'
- '.x-foo_main {\n'
+ '[is="x-foo"] .main {\n'
' color: #f00;\n'
'}\n'
- '.x-foo_test-background {\n'
+ '[is="x-foo"] .test-background {\n'
' background: url("http://www.foo.com/bar.png");\n'
'}\n\n');
} else if (file.path == 'out/foo.css') {
@@ -493,7 +498,7 @@ test_pseudo_element() {
'<div>Test</div>'
'</div>'
'</template>',
- }, messages);
+ }, messages, scopedCss: true);
compiler.run().then(expectAsync1((e) {
MockFileSystem fs = compiler.fileSystem;
« no previous file with comments | « pubspec.yaml ('k') | test/observable_transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698