Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from Polymer/fix-tests-for-all-browsers
Browse files Browse the repository at this point in the history
Fix tests for all browsers
  • Loading branch information
cdata committed Mar 24, 2015
2 parents 96ced89 + 3ac20f5 commit 14f2ee1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"version": "0.0.1",
"description": "A simple element to fixture DOM for tests.",
"dependencies": {
"webcomponentsjs": "~0.5.3"
"webcomponentsjs": "webcomponents/webcomponentsjs#~0.6.0"
},
"devDependencies": {
"web-component-tester": "*"
"web-component-tester": "~2.2.6",
"polymer": "polymer/polymer#0.8-preview"
}
}
2 changes: 1 addition & 1 deletion test-fixture.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
var fixturedElement;

if (!(fixtureTemplate &&
fixtureTemplate instanceof HTMLTemplateElement)) {
fixtureTemplate.tagName === 'TEMPLATE')) {
return;
}

Expand Down
6 changes: 3 additions & 3 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<head>
<meta charset="utf-8">

<script src="../bower_components/webcomponentsjs/webcomponents.js"></script>
<script src="../bower_components/web-component-tester/browser.js"></script>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/browser.js"></script>

<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../../polymer/polymer.html">

</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions test/test-fixture.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
});

it('clones all template fragments within itself', function () {
expect(el).to.be.ok;
expect(document.getElementById('Foo')).to.be.ok;
});

Expand Down

0 comments on commit 14f2ee1

Please sign in to comment.