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

Side by Side Diff: test/data/input/root_query_no_shadowroot_test.html

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 10 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
« no previous file with comments | « test/data/input/recursive_test_data.dart ('k') | test/data/input/style_binding_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a 4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. 5 BSD-style license that can be found in the LICENSE file.
6 --> 6 -->
7 <html lang="en"> 7 <html lang="en">
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
11 <title>root_query_no_shadowroot</title>
12 <script type='application/javascript' src="testing.js"></script> 11 <script type='application/javascript' src="testing.js"></script>
13 </head> 12 </head>
14 <body> 13 <body>
15 <element name="x-test" extends="div"> 14 <element name="x-test" extends="div">
16 <template> 15 <template>
17 <pre>FAIL - this text should be replaced</pre> 16 <pre>FAIL - this text should be replaced</pre>
18 </template> 17 </template>
19 <script type="application/dart"> 18 <script type="application/dart">
20 import 'package:web_ui/web_ui.dart'; 19 import 'package:web_ui/web_ui.dart';
21 import 'package:unittest/unittest.dart'; 20 import 'package:unittest/unittest.dart';
22 class Test extends WebComponent { 21 class Test extends WebComponent {
23 inserted() { 22 inserted() {
24 var pre = _root.query('pre'); 23 var pre = _root.query('pre');
25 expect(pre, isNotNull, reason: '_root.query should find "pre"'); 24 expect(pre, isNotNull, reason: '_root.query should find "pre"');
26 pre.text = 'PASS'; 25 pre.text = 'PASS';
27 } 26 }
28 } 27 }
29 </script> 28 </script>
30 </element> 29 </element>
31 <div is="x-test"></div> 30 <div is="x-test"></div>
32 <script type="application/dart"> 31 <script type="application/dart">
33 import 'dart:html'; 32 import 'dart:html';
34 import 'package:web_ui/web_ui.dart'; 33 import 'package:web_ui/web_ui.dart';
35 main() { 34 main() {
36 // This is a regression test for our emulated Shadow DOM. 35 // This is a regression test for our emulated Shadow DOM.
37 useShadowDom = false; 36 useShadowDom = false;
38 window.setTimeout(() => window.postMessage('done', '*'), 0); 37 window.setImmediate(() => window.postMessage('done', '*'));
39 } 38 }
40 </script> 39 </script>
41 </body> 40 </body>
42 </html> 41 </html>
OLDNEW
« no previous file with comments | « test/data/input/recursive_test_data.dart ('k') | test/data/input/style_binding_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698