mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
Fix wct/browser.js load order, simplify travis config
This commit is contained in:
@@ -3,7 +3,7 @@ sudo: false
|
||||
matrix:
|
||||
include:
|
||||
- node_js: stable
|
||||
script: xvfb-run -a wct --simpleOutput
|
||||
script: xvfb-run wct
|
||||
addons:
|
||||
firefox: latest
|
||||
apt:
|
||||
@@ -15,7 +15,7 @@ matrix:
|
||||
script:
|
||||
- |
|
||||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||
wct --simpleOutput -s 'Windows 10/microsoftedge' -s 'Windows 8.1/internet explorer@11' -s 'Windows 7/internet explorer@10' -s 'OS X 10.10/safari@8' -s 'OS X 10.9/safari@7'
|
||||
wct -s 'default'
|
||||
fi
|
||||
before_script:
|
||||
- export PATH=$PWD/node_modules/.bin:$PATH
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Elements: attributes</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>CustomEvent detail test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
HTMLImports = {};
|
||||
|
||||
@@ -42,6 +41,7 @@
|
||||
});
|
||||
</script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
(function() {
|
||||
var proto = Object.create(HTMLElement.prototype);
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Elements: shadowdom integration</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
hasShadowDOM = Boolean(Element.prototype.createShadowRoot);
|
||||
</script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-host></x-host>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Elements: throttle attached</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js?wc-throttle-attached"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Elements: upgrade order</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Elements: upgrade order</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<title>CustomElements Tests</title>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<script src="../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../src/CustomElements/CustomElements.js"></script>
|
||||
<script src="../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script>
|
||||
WCT.loadSuites([
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML Imports Test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/import-1.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<head>
|
||||
<title>HTMLImportsLoaded, native</title>
|
||||
<script>WCT = {waitFor: function(cb){ cb() }}</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></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">
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>parser Test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<meta http-equiv='Content-Security-Policy' content="script-src 'self';">
|
||||
<link rel="import" href="imports/csp-import-1.html">
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<head>
|
||||
<title>_currentScript Test</title>
|
||||
<script>WCT = {waitFor: function(cb){cb()}};</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/script-1.html">
|
||||
<script src="imports/current-script.js"></script>
|
||||
</head>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>CustomEvent detail test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML dedupe Test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/dedupe.html">
|
||||
<script>
|
||||
var link = document.createElement('link');
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML Imports Dynamic</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>HTML Imports Dynamic</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/encoding-import.html">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
<script>
|
||||
WCT = {waitFor: function(cb){cb()}};
|
||||
</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
var errors = 0;
|
||||
function errorHandler() {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>load loop Test</title>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>var loaded = [];</script>
|
||||
<link rel="import" href="imports/load-a.html">
|
||||
</head>
|
||||
|
||||
@@ -11,21 +11,19 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>template script test</title>
|
||||
<script src="../../tools/htmltest.js"></script>
|
||||
<script src="../../tools/chai/chai.js"></script>
|
||||
<script src="../../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<link rel="import" href="imports/template-import.html">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
addEventListener('HTMLImportsLoaded', function() {
|
||||
test('scripts inside templates execute', function() {
|
||||
var link = document.querySelector('link');
|
||||
var template = link.import.querySelector('template');
|
||||
chai.assert.ok(template, 'found import template');
|
||||
var content = template.content || template;
|
||||
document.body.appendChild(content.cloneNode(true));
|
||||
chai.assert.ok(window.executedTemplateScript, 'executedTemplateScript');
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../bower_components/web-component-tester/browser.js"></script>
|
||||
<script src="../../src/HTMLImports/HTMLImports.js"></script>
|
||||
<script src="../../bower_components/web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
var suites = [
|
||||
'html/HTMLImports.html',
|
||||
@@ -40,6 +40,7 @@
|
||||
'html/csp.html',
|
||||
'html/customevent-detail.html',
|
||||
'html/encoding.html',
|
||||
'html/template-script.html',
|
||||
'html/HTMLImportsLoaded-native.html',
|
||||
];
|
||||
// NOTE: The MO polyfill does not function on disconnected documents
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
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
|
||||
-->
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
|
||||
var assert = chai.assert;
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
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
|
||||
-->
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
|
||||
var assert = chai.assert;
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
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
|
||||
-->
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<a></a><script>
|
||||
var assert = chai.assert;
|
||||
var wrap = ShadowDOMPolyfill.wrap;
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
-->
|
||||
<title>Full ShadowDOM suite</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script>
|
||||
// common utils
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
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
|
||||
-->
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<head>
|
||||
<script>
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
|
||||
var wrap = ShadowDOMPolyfill.wrap;
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
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
|
||||
-->
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
|
||||
<script src="../../../src/ShadowDOM/ShadowDOM.js"></script>
|
||||
<script src="../../../../web-component-tester/browser.js"></script>
|
||||
<script>
|
||||
// Note: this test will navigate away from the page. It is designed to be run
|
||||
// in an iframe. Use ShadowDOM/test/runner.html?grep=unload for running it by
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Template Test</title>
|
||||
<script src="../../../web-component-tester/browser.js"></script>
|
||||
<script src="../../src/Template/Template.js"></script>
|
||||
<script src="../../../web-component-tester/browser.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<template>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"suites": ["tests/runner.html"],
|
||||
"expanded": "true"
|
||||
"suites": ["tests/runner.html"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user