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

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

Issue 11465028: rename web_components -> web_ui (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 8 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 unified diff | Download patch
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>watch_global_var_test</title> 11 <title>watch_global_var_test</title>
12 <script type='application/javascript' src="testing.js"></script> 12 <script type='application/javascript' src="testing.js"></script>
13 </head> 13 </head>
14 <body> 14 <body>
15 <p>The href of these links should match:</p> 15 <p>The href of these links should match:</p>
16 <a href="#The &quot;quick&quot; \brown $fox jumps over the 'lazy' dog."> 16 <a href="#The &quot;quick&quot; \brown $fox jumps over the 'lazy' dog.">
17 first link</a> 17 first link</a>
18 <a href="#The &quot;quick&quot; \brown $fox {{j1}} over {{j2}} 'lazy' {{&quot; ${'dog'}&quot;}}."> 18 <a href="#The &quot;quick&quot; \brown $fox {{j1}} over {{j2}} 'lazy' {{&quot; ${'dog'}&quot;}}.">
19 second link</a> 19 second link</a>
20 <p>Here are the hrefs as text:</p> 20 <p>Here are the hrefs as text:</p>
21 <!-- Use data binding to display our data binding. We must go deeper. --> 21 <!-- Use data binding to display our data binding. We must go deeper. -->
22 <pre>{{tryQuery('a', 0, (e) => e.hash)}}</pre> 22 <pre>{{tryQuery('a', 0, (e) => e.hash)}}</pre>
23 <pre>{{tryQuery('a', 1, (e) => e.hash)}}</pre> 23 <pre>{{tryQuery('a', 1, (e) => e.hash)}}</pre>
24 <script type="application/dart"> 24 <script type="application/dart">
25 import 'dart:html'; 25 import 'dart:html';
26 import 'package:web_components/watcher.dart'; 26 import 'package:web_ui/watcher.dart';
27 27
28 final j1 = 'jumps'; 28 final j1 = 'jumps';
29 final j2 = 'the'; 29 final j2 = 'the';
30 final fox = 'Your escaping is bad and you should feel bad!'; 30 final fox = 'Your escaping is bad and you should feel bad!';
31 main() { 31 main() {
32 window.setTimeout(() { 32 window.setTimeout(() {
33 dispatch(); 33 dispatch();
34 window.setTimeout(() => window.postMessage('done', '*'), 0); 34 window.setTimeout(() => window.postMessage('done', '*'), 0);
35 }, 0); 35 }, 0);
36 } 36 }
37 37
38 tryQuery(String selector, int i, void callback(elem)) { 38 tryQuery(String selector, int i, void callback(elem)) {
39 var result = queryAll(selector); 39 var result = queryAll(selector);
40 if (result.length > i) return callback(result[i]); 40 if (result.length > i) return callback(result[i]);
41 return null; 41 return null;
42 } 42 }
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698