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

Side by Side Diff: appengine/config_service/ui/bower_components/webcomponentsjs/tests/ce-upgrade-order.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://polym er.github.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/CO NTRIBUTORS.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/P ATENTS.txt
10 -->
11 <html lang="en">
12 <head>
13 <meta charset="UTF-8">
14 <title>Custom Element Upgrade Order</title>
15 <script src="../webcomponents-loader.js"></script>
16 <script src="../../web-component-tester/browser.js"></script>
17 <link rel="import" href="imports/import-upgrade-order.html">
18 </head>
19 <body>
20 <x-foo id="main"></x-foo>
21 <script>
22 suite('Custom Element upgrade', function() {
23 test('upgrade order', function() {
24 var order = [];
25 class XFoo extends HTMLElement {
26 connectedCallback() {
27 order.push(this.id);
28 }
29 }
30 window.customElements.define('x-foo', XFoo);
31 assert.deepEqual(order, ['import', 'main'], 'elements are upgraded in im ports before main document');
32 });
33 });
34 </script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698