Skip to content

Commit

Permalink
3.0.0-pre.14-lit-html.8.6 with [WIP] Issue #60, Issue #61 Merge 3.0.0…
Browse files Browse the repository at this point in the history
…-pre.14 into lit-html branch
  • Loading branch information
t2ym committed Jan 8, 2019
2 parents fdc34c5 + b6c8546 commit 4d9e720
Show file tree
Hide file tree
Showing 218 changed files with 37,527 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ addons:
sauce_connect: true
script:
- gulp patch-wct-browser-legacy # cp -vf test/browser.js node_modules/wct-browser-legacy/browser.js
- wct --npm --module-resolution=node --skip-plugin=sauce
- wct --npm --module-resolution=node --skip-plugin=istanbul
- gulp patch-web-component-tester # cp -vf test/steps.js node_modules/web-component-tester/runner/steps.js
- wct --npm --module-resolution=node
- 'if [ "${TRAVIS_BRANCH}" != "" ]; then lcov-result-merger ''test/coverage-report*/lcov.info'' | ./node_modules/coveralls/bin/coveralls.js || echo success; fi'
4 changes: 4 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,3 +798,7 @@ gulp.task('patch-wct-browser-legacy', () => {
.pipe(gulp.dest('node_modules/wct-browser-legacy'));
});

gulp.task('patch-web-component-tester', () => {
return gulp.src([ 'test/steps.js' ], { base: 'test' })
.pipe(gulp.dest('node_modules/web-component-tester/runner'));
});
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
},
"homepage": "https://github.com/t2ym/i18n-element#readme",
"name": "i18n-element",
"version": "3.0.0-pre.6-lit-html.8.6",
"version": "3.0.0-pre.14-lit-html.8.6",
"main": "i18n-element.js",
"directories": {
"test": "test"
},
"nyc": {
"exclude": ["!**/node_modules/**"]
},
"scripts": {
"test": "gulp test:local"
},
Expand Down Expand Up @@ -77,7 +80,7 @@
"through2": "^2.0.1",
"wct-browser-legacy": "^1.0.1",
"wct-istanbul": "^0.14.0",
"web-component-tester": "^6.9.0",
"web-component-tester": "6.9.2",
"xliff-conv": "^1.0.10"
},
"resolutions": {
Expand All @@ -88,7 +91,7 @@
},
"dependencies": {
"@polymer/polymer": "^3.0.0",
"i18n-behavior": "^3.0.0-pre.14",
"i18n-behavior": "^3.0.0-pre.16",
"lit-html": "^1.0.0-rc.1"
}
}
35 changes: 35 additions & 0 deletions test/base-polymer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"entrypoint": "test/bundled/test-name-test.html",
"shell": "test/bundled/test-name-test-imports.js",
"fragments": [
],
"sources": [
"test/bundled/test-name-test.html",
"test/bundled/test-name-test-imports.js"
],
"extraDependencies": [
],
"builds": [
{
"name": "esm-bundled",
"browserCapabilities": [
"es2015",
"modules"
],
"js": {
"minify": true
},
"css": {
"minify": true
},
"html": {
"minify": true
},
"bundle": true,
"addServiceWorker": false
}
],
"npm": true,
"componentDir": "node_modules/",
"moduleResolution": "node"
}
101 changes: 96 additions & 5 deletions test/browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions test/bundled-ie11-wct.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"plugins": {
"local": {
"disabled": true,
"browsers": [
"chrome",
"firefox"
],
"browserOptions": {
"chrome": [
"headless",
"disable-gpu"
],
"firefox": [
"--headless"
]
}
},
"sauce": {
"disabled": false,
"browsers": [
{
"browserName": "internet explorer",
"platform": "Windows 8.1",
"version": "11"
}
]
},
"istanbul": {
"dir": "test/coverage-report",
"reporters": ["text-summary", "lcov"],
"include": [
"**/i18n-element.js",
"**/i18n-dom-bind.js",
"**/define-element.js"
],
"exclude": [
"/node_modules/**/*",
"/test/**/*"
]
}
}
}

85 changes: 85 additions & 0 deletions test/bundled-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!DOCTYPE html><!--
@license
Copyright (c) 2015 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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

<script src="../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script src="../../wct-browser-legacy/browser.js"></script>
</head>
<body>
<script>
var hasShadow = Boolean(Element.prototype.attachShadow);
var nativeShadow = hasShadow && !window.ShadowDOMPolyfill;
var nativeES6 = true;
var nativeCustomElementsV1 = !customElements.polyfilled;
try { new Function('class a {}'); } catch (e) { nativeES6 = false; }
if (nativeES6 && !window.Proxy) { nativeES6 = false; }
var suites = [];
(nativeES6 ?
[
//'src2',
//'src3',
//'preprocess2',
//'preprocess3',
'bundled',
//'minify2-min'
] :
[
//'src2',
//'src3',
//'preprocess2',
//'preprocess3',
'bundled',
//'minify2-min'
]
).forEach(function (phase) {
(nativeShadow ? [ '', /*'?xhr=fake&suppress=true', '?dom=shadow&xhr=fake&suppress=true' */ ] : [ '?xhr=fake&suppress=true' ]).forEach(function (dom) {
(nativeES6 ?
[
'mixin',
'base-element',
'thin',
//'legacy'
] :
[
'mixin',
'base-element',
'thin',
//'legacy'
]
).forEach(function (syntax) {
(nativeCustomElementsV1 ?
[
'basic',
'edge-case',
'multiple-case',
'template-default-lang',
'preference',
//'no-persist'
] :
[
'basic',
'edge-case',
'multiple-case',
'template-default-lang',
'preference',
//'no-persist'
]
).forEach(function (type) {
suites.push(phase + '/' + type + '-test.html' + (dom ? dom + '&syntax=' + syntax : '?syntax=' + syntax));
});
})
});
});
// Load and run all tests (.html, .js):
WCT.loadSuites(suites);
</script>

</body></html>

0 comments on commit 4d9e720

Please sign in to comment.