Skip to content

Commit f86ed5a

Browse files
committed
Add tests for jquery + shadowdom polyfill interaction
Closes #243
1 parent b9bdc30 commit f86ed5a

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>ShadowDOM Polyfill + jQuery</title>
6+
<script src="../../polymer.js" shadow="polyfill"></script>
7+
<script src="../../tools/test/htmltest.js"></script>
8+
<script src="../../node_modules/chai/chai.js"></script>
9+
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
10+
</head>
11+
<body>
12+
asdf
13+
<script>
14+
$(document).ready(done);
15+
</script>
16+
</body>
17+
</html>

test/js/library-coop.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2013 The Polymer Authors. All rights reserved.
3+
* Use of this source code is governed by a BSD-style
4+
* license that can be found in the LICENSE file.
5+
*/
6+
7+
htmlSuite('Library Cooperation', function() {
8+
htmlTest('html/jquery-shadowdom-polyfill.html');
9+
});

test/runner.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<script src="js/events.js"></script>
3232
<script src="js/styling.js"></script>
3333
<script src="js/mdv-syntax.js"></script>
34+
<script src="js/library-coop.js"></script>
3435
<!-- -->
3536
<script>
3637
mocha.run();

0 commit comments

Comments
 (0)