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

Side by Side Diff: pkg/polymer/test/noscript_test.dart

Issue 182193002: [polymer] interop with polymer-element and polymer.js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/test/nested_binding_test.html ('k') | pkg/polymer/test/noscript_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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'package:unittest/html_config.dart'; 8 import 'package:unittest/html_config.dart';
9 import 'package:polymer/polymer.dart'; 9 import 'package:polymer/polymer.dart';
10 import 'package:template_binding/template_binding.dart'; 10 import 'package:template_binding/template_binding.dart';
(...skipping 12 matching lines...) Expand all
23 23
24 var ready = Polymer.onReady.then((_) { 24 var ready = Polymer.onReady.then((_) {
25 var a = querySelector("#a"); 25 var a = querySelector("#a");
26 templateBind(a).model = "foo"; 26 templateBind(a).model = "foo";
27 return onMutation(a.parent); 27 return onMutation(a.parent);
28 }); 28 });
29 29
30 setUp(() => ready); 30 setUp(() => ready);
31 31
32 test('template found with multiple noscript declarations', () { 32 test('template found with multiple noscript declarations', () {
33 expect(querySelector('x-a') is PolymerElement, isTrue);
34 expect(querySelector('x-a').shadowRoot.nodes.first.text, 'a'); 33 expect(querySelector('x-a').shadowRoot.nodes.first.text, 'a');
35
36 expect(querySelector('x-c') is PolymerElement, isTrue);
37 expect(querySelector('x-c').shadowRoot.nodes.first.text, 'c'); 34 expect(querySelector('x-c').shadowRoot.nodes.first.text, 'c');
38
39 expect(querySelector('x-b') is PolymerElement, isTrue);
40 expect(querySelector('x-b').shadowRoot.nodes.first.text, 'b'); 35 expect(querySelector('x-b').shadowRoot.nodes.first.text, 'b');
41
42 expect(querySelector('x-d') is PolymerElement, isTrue);
43 expect(querySelector('x-d').shadowRoot.nodes.first.text, 'd'); 36 expect(querySelector('x-d').shadowRoot.nodes.first.text, 'd');
44 }); 37 });
45 }); 38 });
OLDNEW
« no previous file with comments | « pkg/polymer/test/nested_binding_test.html ('k') | pkg/polymer/test/noscript_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698