Skip to content

Commit

Permalink
refactored tests to for book view
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKBovard committed Sep 18, 2018
1 parent cc534af commit 1f46645
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/my-view1.html → test/book-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script src="../node_modules/wct-browser-legacy/browser.js"></script>

<!-- Import the element to test -->
<script type="module" src="../src/my-view1.js"></script>
<script type="module" src="../src/book-view/index.js"></script>
</head>
<body>
<test-fixture id="BasicView">
Expand All @@ -30,7 +30,7 @@
</test-fixture>

<script type="module">
suite('my-view1 tests', function() {
suite('book-view tests', function() {
test('Number in circle should be 1', function() {
var myView = fixture('BasicView');
var circle = myView.shadowRoot.querySelector('.circle');
Expand Down
4 changes: 2 additions & 2 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<script>
WCT.loadSuites([
// Load 'my-view1.html' test suite, using native shadow dom
'my-view1.html?dom=shadow',
'book-view.html?dom=shadow',
// Load 'my-view1.html' test suite, using shadydom
'my-view1.html?wc-shadydom=true',
'book-view.html?wc-shadydom=true',
]);
</script>
</body>
Expand Down

0 comments on commit 1f46645

Please sign in to comment.