~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/paper-dialog/test/paper-dialog.html

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html>
 
2
<!--
 
3
@license
 
4
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
 
5
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 
6
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 
7
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 
8
Code distributed by Google as part of the polymer project is also
 
9
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 
10
-->
 
11
<html>
 
12
  <head>
 
13
 
 
14
    <title>paper-dialog tests</title>
 
15
 
 
16
    <meta charset="utf-8">
 
17
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 
18
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
 
19
 
 
20
    <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
 
21
    <script src="../../web-component-tester/browser.js"></script>
 
22
    <link rel="import" href="../paper-dialog.html">
 
23
 
 
24
  </head>
 
25
  <body>
 
26
 
 
27
    <test-fixture id="basic">
 
28
      <template>
 
29
        <paper-dialog>
 
30
          <p>Dialog</p>
 
31
        </paper-dialog>
 
32
      </template>
 
33
    </test-fixture>
 
34
 
 
35
    <script>
 
36
 
 
37
      suite('a11y', function() {
 
38
 
 
39
        test('dialog has role="dialog"', function() {
 
40
          var dialog = fixture('basic');
 
41
          assert.equal(dialog.getAttribute('role'), 'dialog', 'has role="dialog"');
 
42
        });
 
43
 
 
44
      });
 
45
 
 
46
    </script>
 
47
 
 
48
  </body>
 
49
</html>