Skip to content

Commit

Permalink
Add tests for jquery + shadowdom polyfill interaction
Browse files Browse the repository at this point in the history
Closes #243
  • Loading branch information
dfreedm committed Aug 16, 2013
1 parent b9bdc30 commit f86ed5a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/html/jquery-shadowdom-polyfill.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ShadowDOM Polyfill + jQuery</title>
<script src="../../polymer.js" shadow="polyfill"></script>
<script src="../../tools/test/htmltest.js"></script>
<script src="../../node_modules/chai/chai.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
asdf
<script>
$(document).ready(done);
</script>
</body>
</html>
9 changes: 9 additions & 0 deletions test/js/library-coop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/

htmlSuite('Library Cooperation', function() {
htmlTest('html/jquery-shadowdom-polyfill.html');
});
1 change: 1 addition & 0 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<script src="js/events.js"></script>
<script src="js/styling.js"></script>
<script src="js/mdv-syntax.js"></script>
<script src="js/library-coop.js"></script>
<!-- -->
<script>
mocha.run();
Expand Down

0 comments on commit f86ed5a

Please sign in to comment.