stub HTMLImports.useNative, try latest hi and ce

This commit is contained in:
valdrinkoshi
2017-01-27 15:38:20 -08:00
parent a7199cc3c2
commit b12a6376b3
11 changed files with 31 additions and 48 deletions

View File

@@ -27,13 +27,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<body>
<script>
test('expected boot', function() {
requestAnimationFrame(function() {
assert.ok(window.webComponentsReady, 'failed to fire WebComponentsReady');
if (window.HTMLImports) {
assert.ok(window.importsOk, 'WebComponentsReady without HTMLImportsLoaded');
}
assert.ok(window.importTest, 'import failed to set global value');
});
assert.ok(window.webComponentsReady, 'failed to fire WebComponentsReady');
if (!window.HTMLImports.useNative) {
assert.ok(window.importsOk, 'WebComponentsReady without HTMLImportsLoaded');
}
assert.ok(window.importTest, 'import failed to set global value');
});
</script>
</body>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -18,6 +18,7 @@
// Stub out HTMLImports if we're using native imports
window.HTMLImports = {
useNative: useNativeImports,
whenReady: function(callback) {
if (useNativeImports) {
// When native imports boot, the are "ready" the first rAF after

File diff suppressed because one or more lines are too long