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

Commit

Permalink
tests now import polymer.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 12, 2013
1 parent e0e49e8 commit 73fcb66
Show file tree
Hide file tree
Showing 29 changed files with 69 additions and 37 deletions.
3 changes: 2 additions & 1 deletion test/html/attr-mustache.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>attribute mustaches</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/bind-object-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>bind object + repeat</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>bind simple</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>callbacks</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/element-import.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>element script</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
<link rel="import" href="element-import/import.html">
Expand Down
15 changes: 9 additions & 6 deletions test/html/element-registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>element script</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down Expand Up @@ -121,12 +122,14 @@
<!-- async script -->
<script>
document.addEventListener('WebComponentsReady', function() {
Polymer('x-blarg', {
ready: function() {
this.squid = 'bink';
}
setTimeout(function() {
Polymer('x-blarg', {
ready: function() {
this.squid = 'bink';
}
});
test();
});
test();
});
</script>
</polymer-element>
Expand Down
3 changes: 2 additions & 1 deletion test/html/element-script.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>element script</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
<script src="element-script/elements.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion test/html/event-handlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>event handlers</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/event-path-declarative.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/event-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>event path</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/mdv-syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<head>
<meta charset="UTF-8">
<title>mdv syntax</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/parser-rules.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<html>
<head>
<title>HTML Imports Test</title>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
<script src="../../polymer.js"></script>
</head>
<body>
<table><tr is="x-foo" id="foo"></tr></table>
Expand Down
3 changes: 2 additions & 1 deletion test/html/prepare.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>prepare test</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/prop-attr-bind-reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>property to attribute reflection with bind</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/prop-attr-reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>publish attributes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/prop-bind-oo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>bind properties compatible with object observe</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/property-array-changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>property changes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/property-changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>property changes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/property-observe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>property.observe changes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/publish-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>publish attributes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>general reflection tests</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/styling/apply-reset-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<html>
<head>
<title>applyAuthorStyles / resetStyleInheirtance</title>
<script src="../../../polymer.js"></script>
<script src="../../../../platform/platform.js"></script>
<link rel="import" href="../../../polymer.html">
<script src="../../../../tools/test/htmltest.js"></script>
<script src="../../../../tools/test/chai/chai.js"></script>
<style>
Expand Down
3 changes: 2 additions & 1 deletion test/html/styling/sheet-main-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<head>
<meta name="viewport" content="initial-scale=1.0">
<title>loading sheets in elements defined in main document</title>
<script src="../../../polymer.js"></script>
<script src="../../../../platform/platform.js"></script>
<link rel="import" href="../../../polymer.html">
<script src="../../../../tools/test/htmltest.js"></script>
<script src="../../../../tools/test/chai/chai.js"></script>
<link rel="import" href="x-sheet-main-doc.html">
Expand Down
3 changes: 2 additions & 1 deletion test/html/styling/sheet-order.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<head>
<meta name="viewport" content="initial-scale=1.0">
<title>Sheet order</title>
<script src="../../../polymer.js"></script>
<script src="../../../../platform/platform.js"></script>
<link rel="import" href="../../../polymer.html">
<script src="../../../../tools/test/htmltest.js"></script>
<script src="../../../../tools/test/chai/chai.js"></script>
<link rel="import" href="x-sheets.html">
Expand Down
3 changes: 2 additions & 1 deletion test/html/styling/sheet-scope.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<html>
<head>
<title>Sheet scope</title>
<script src="../../../polymer.js"></script>
<script src="../../../../platform/platform.js"></script>
<link rel="import" href="../../../polymer.html">
<script src="../../../../tools/test/htmltest.js"></script>
<script src="../../../../tools/test/chai/chai.js"></script>
<style>
Expand Down
3 changes: 2 additions & 1 deletion test/html/take-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>take attributes</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/template-distribute-dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>template distribute</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
3 changes: 2 additions & 1 deletion test/html/unbind.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<title>unbind</title>
<script src="../../polymer.js"></script>
<script src="../../../platform/platform.js"></script>
<link rel="import" href="../../polymer.html">
<script src="../../../tools/test/htmltest.js"></script>
<script src="../../../tools/test/chai/chai.js"></script>
</head>
Expand Down
10 changes: 6 additions & 4 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<title>Polymer Test Runner (Mocha)</title>
<meta charset="UTF-8">
<!-- -->
<link rel="stylesheet" href="../../tools/test/mocha/mocha.css" />
<link rel="stylesheet" href="../../tools/test/mocha/mocha.css">
<script src="../../tools/test/mocha/mocha.js"></script>
<script src="../../tools/test/chai/chai.js"></script>
<script src="../../tools/test/mocha-htmltest.js"></script>
<!-- -->
<script src="../polymer.js" debug></script>
<script src="../../platform/platform.js"></script>
<link rel="import" href="../polymer.html">
</head>
<body>
<div id="mocha"></div>
Expand All @@ -35,7 +35,9 @@
<script src="js/mdv-syntax.js"></script>
<!-- -->
<script>
mocha.run();
document.addEventListener('WebComponentsReady', function() {
mocha.run();
});
</script>
</body>
</html>

0 comments on commit 73fcb66

Please sign in to comment.