Skip to content

Commit

Permalink
Align with skeleton: add separate file for test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jan 3, 2018
1 parent fe587bd commit 3aede34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>vaadin-dialog tests</title>
<script src="../../web-component-tester/browser.js"></script>
<script src="test-suites.js"></script>
</head>

<body>
<script>
WCT._config.environmentScripts.push('webcomponentsjs/webcomponents-lite.js');

WCT.loadSuites([
'vaadin-dialog_test.html'
].reduce(function(suites, suite) {
return suites.concat([suite, `${suite}?wc-shadydom=true`]);
}, []));
WCT.loadSuites(
window.VaadinDialogSuites
.reduce(function(suites, suite) {
return suites.concat([suite, `${suite}?wc-shadydom=true`]);
}, [])
);
</script>
</body>

Expand Down
3 changes: 3 additions & 0 deletions test/test-suites.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
window.VaadinDialogSuites = [
'vaadin-dialog_test.html'
];

0 comments on commit 3aede34

Please sign in to comment.