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

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

Issue 37793004: Switch to lookup declaration by tag name. This fixes issue 14274. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'dart:html';
6 import 'package:unittest/unittest.dart';
7 import 'package:unittest/html_config.dart';
8 import 'package:polymer/polymer.dart';
9 import 'package:template_binding/template_binding.dart';
10
11 main() {
12 initPolymer();
13 useHtmlConfiguration();
14 templateBind(querySelector("#a")).model = "foo";
15
16 setUp(() => Polymer.onReady);
17
18 test('template found with multiple noscript declarations', () {
19 expect(querySelector('x-a') is PolymerElement, isTrue);
20 expect(querySelector('x-a').shadowRoot.nodes.first.text, 'a');
21
22 expect(querySelector('x-c') is PolymerElement, isTrue);
23 expect(querySelector('x-c').shadowRoot.nodes.first.text, 'c');
24
25 expect(querySelector('x-b') is PolymerElement, isTrue);
26 expect(querySelector('x-b').shadowRoot.nodes.first.text, 'b');
27
28 expect(querySelector('x-d') is PolymerElement, isTrue);
29 expect(querySelector('x-d').shadowRoot.nodes.first.text, 'd');
30 });
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698