Skip to content

Commit

Permalink
Tests: Add 'A11ySuite' tests
Browse files Browse the repository at this point in the history
Closes #14
Release v.1.1.0
  • Loading branch information
gorork committed Oct 31, 2016
1 parent 5292f6b commit f6182bc
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paper-audio-player",
"version": "1.0.0",
"version": "1.1.0",
"authors": [
"Nadi Dikun <[email protected]>"
],
Expand Down
41 changes: 41 additions & 0 deletions test/a11y-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/browser.js"></script>
<script src="../../test-fixture/test-fixture-mocha.js"></script>
<script src="../../iron-test-helpers/mock-interactions.js"></script>


<!-- Import the paper-audio-player element -->
<link rel="import" href="../../test-fixture/test-fixture.html">
<link rel="import" href="../paper-audio-player.html">
</head>
<body>

<!-- Resizing player -->
<test-fixture id="a11y">
<template>
<paper-audio-player src="./pink-shades-o-pnr.mp3"></paper-audio-player>
</template>
</test-fixture>

<script>

suite('a11y', function() {
var a11y;

setup(function() {
a11y = fixture('a11y');
});

a11ySuite('a11y');
});

</script>

</body>
</html>
3 changes: 2 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
WCT.loadSuites([
'basic-test.html',
'preload-test.html',
'responsive-test.html'
'responsive-test.html',
'a11y-test.html'
]);
</script>
</body>
Expand Down

0 comments on commit f6182bc

Please sign in to comment.