Merge branch 'master' into v1-update-builds

This commit is contained in:
valdrinkoshi
2017-03-21 14:30:33 -07:00
5 changed files with 47 additions and 2 deletions

View File

@@ -17,3 +17,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
import '../bower_components/shadydom/src/shadydom.js'
import '../bower_components/custom-elements/src/custom-elements.js'
import '../bower_components/shadycss/entrypoints/scoping-shim.js'
requestAnimationFrame(() => {
window.dispatchEvent(new CustomEvent('WebComponentsReady'));
});

View File

@@ -0,0 +1,40 @@
<!doctype html>
<!--
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html>
<head>
<title>Force polyfills</title>
<meta charset="UTF-8">
<script>
window.ShadyDOM = {
force: true
};
if (window.customElements) customElements.forcePolyfill = true;
window.webComponentsReadyCount = 0;
window.addEventListener('WebComponentsReady', function() {
window.webComponentsReadyCount++;
});
</script>
<script src="../webcomponents-loader.js"></script>
<script src="../../web-component-tester/browser.js"></script>
</head>
<body>
<script>
suite('Force polyfill', function() {
test('expected boot', function() {
assert.equal(window.webComponentsReadyCount, 1, 'failed to fire WebComponentsReady');
});
});
</script>
</body>
</html>

View File

@@ -21,6 +21,7 @@
'integration.html',
'integration-es5.html',
'load.html',
'force-polyfills.html',
'dev-loader.html',
'dev-loader-swizzled.html',
// 'smoke.html',

View File

@@ -141,7 +141,7 @@ c&&this.Ea(c)}};k.prototype.I=function(a){for(var b=0;b<a.length;b++){var c=this
c.trim():""};k.prototype.Ia=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===r.a){c=d[e+1];break}}c&&b.push(r.a,c);v||(c=t.get(a))&&c.C&&b.push(J.g,c.C);ia(a,b.join(" "))};k.prototype.Ga=function(a){return t.get(a)};k.prototype.flush=k.prototype.H;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=
k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.Ia;k.prototype._styleInfoForNode=k.prototype.Ga;k.prototype.transformCustomStyleForDocument=k.prototype.B;k.prototype.getStyleAst=k.prototype.Ha;k.prototype.styleAstToString=k.prototype.Ja;k.prototype.flushCustomStyles=k.prototype.f;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return u}},nativeCss:{get:function(){return v}}});
var G=new k,cb,db;window.ShadyCSS&&(cb=window.ShadyCSS.ApplyShim,db=window.ShadyCSS.CustomStyleInterface);window.ShadyCSS={ScopingShim:G,prepareTemplate:function(a,b,c){G.f();G.prepareTemplate(a,b,c)},styleSubtree:function(a,b){G.f();G.styleSubtree(a,b)},styleElement:function(a){G.f();G.styleElement(a)},styleDocument:function(a){G.f();G.styleDocument(a)},getComputedStyleValue:function(a,b){return G.getComputedStyleValue(a,b)},nativeCss:v,nativeShadow:u};cb&&(window.ShadyCSS.ApplyShim=cb);db&&(window.ShadyCSS.CustomStyleInterface=
db)})();
db);requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})();
}).call(self)
//# sourceMappingURL=webcomponents-sd-ce.js.map

File diff suppressed because one or more lines are too long