mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-05-09 08:51:23 +00:00
- Removed some unnecessary tests - Accounted for some platform oddities - Disabled MutationObserver tests for platforms with native MutationObserver Results: - 100% green in firefox and chrome - HTMLTemplateElement errors in CustomElements tests (missing import) - Expected ShadowDOM webgl errors in Safari 9
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<!doctype html>
|
|
<!--
|
|
@license
|
|
Copyright (c) 2014 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>HTMLImportsLoaded, native</title>
|
|
<script>WCT = {waitFor: function(cb){ cb() }}</script>
|
|
<script>
|
|
var loaded = false;
|
|
addEventListener('HTMLImportsLoaded', function(e) {
|
|
loaded = true;
|
|
});
|
|
</script>
|
|
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
|
<script src="../../../../web-component-tester/browser.js"></script>
|
|
</head>
|
|
<body>
|
|
<link rel="import" href="imports/import-1.html">
|
|
<script>
|
|
test('HTMLImportsLoaded fires with native imports', function() {
|
|
if (HTMLImports.useNative) {
|
|
assert.isTrue(loaded);
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|