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

Side by Side Diff: appengine/config_service/ui/bower_components/webcomponentsjs/tests/ce-import.html

Issue 2923973003: Added base template for config ui. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
(Empty)
1 <!doctype html>
2 <!--
3 @license
4 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
11 <html>
12 <head>
13 <title></title>
14 <meta charset="UTF-8">
15 <script src="../webcomponents-loader.js"></script>
16 <script src="../../web-component-tester/browser.js"></script>
17 </head>
18 <body>
19 <x-foo></x-foo>
20 <script>
21 test('ce-import', function(done) {
22 var xfoo = document.querySelector('x-foo');
23 assert.isUndefined(xfoo.isCreated);
24
25 var link = document.createElement('link');
26 link.rel = 'import';
27 link.href = 'imports/element-import.html';
28 document.head.appendChild(link);
29 link.addEventListener('load', function() {
30 assert.isTrue(xfoo.isCreated, 'element in main document, registered in dynamic import is upgraded');
31 var ix = link.import.querySelector('x-foo');
32 assert.isTrue(ix.isCreated, 'element in import, registered in dynamic import is upgraded');
33 done();
34 });
35 });
36 </script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698