1<!doctype html> 2<!-- 3@license 4Copyright (c) 2017 The Polymer Project Authors. All rights reserved. 5This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 6The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 7The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 8Code distributed by Google as part of the polymer project is also 9subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 10--> 11<html> 12<head> 13 <meta charset="utf-8"> 14 <script> 15 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}} 16 </script> 17 <script src="./test-flags.js"></script> 18 <script src="../node_modules/wct-browser-legacy/browser.js"></script> 19 <script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></script> 20 <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script> 21 <script src="../node_modules/@webcomponents/template/template.js"></script> 22 <script src="../node_modules/@webcomponents/html-imports/html-imports.min.js"></script> 23 <script src="../node_modules/@webcomponents/shadydom/shadydom.min.js"></script> 24 <script src="../node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script> 25 <script src="../scoping-shim.min.js"></script> 26 <script src="module/generated/make-element.js"></script> 27</head> 28<body> 29 <template id="x-a"> 30 <style> 31 :host { 32 display: block; 33 } 34 </style> 35 </template> 36 <template id="x-b"> 37 <style> 38 :host { 39 display: block; 40 } 41 </style> 42 </template> 43 <template id="x-c"> 44 <style> 45 :host { 46 display: block; 47 } 48 </style> 49 </template> 50 <script> 51 suite('placeholder ordering', function() { 52 test.skip('placeholders are in order', function() { 53 makeElement('x-a'); 54 makeElement('x-b'); 55 var el = document.createElement('x-a'); 56 document.body.appendChild(el); 57 makeElement('x-c'); 58 var styles = Array.from(document.querySelectorAll('style[scope]')).map(function(style) { 59 return style.getAttribute('scope'); 60 }); 61 assert.deepEqual(styles, ['x-a', 'x-b', 'x-c'], 'styles are not in order'); 62 }) 63 }); 64 </script> 65</body> 66</html>