mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
stub HTMLImports.useNative, try latest hi and ce
This commit is contained in:
@@ -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
@@ -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
Reference in New Issue
Block a user