aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dom_tests/dom_tests.html
blob: 6378807f0d1d33b6e395e58ed5aa9b39db34b6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <style type="text/css">
      body {
        font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
        width: 800px;
        margin: 0px auto;
      }
      #output-div {
        white-space: pre-wrap;
        background-color: #eee;
        font-family: monospace;
        margin: 0 0 50px 0;
        border-style: dashed;
        border-width: 1px 1px 0 1px;
        border-color: #999;
      }
      .errorPosition {
        color: #f33;
        font-weight: bold;
      }
      .output-section {
        padding: 10px 15px 10px 15px;
        border-bottom: dashed 1px #999;
      }
    </style>
    <link rel="stylesheet" type="text/css" href="../../content_scripts/vimium.css" />
    <script type="text/javascript" src="bind.js"></script>
    <script type="text/javascript" src="chrome.js"></script>
    <script type="text/javascript" src="../../lib/utils.js"></script>
    <script type="text/javascript" src="../../lib/keyboard_utils.js"></script>
    <script type="text/javascript" src="../../lib/dom_utils.js"></script>
    <script type="text/javascript" src="../../lib/handler_stack.js"></script>
    <script type="text/javascript" src="../../lib/clipboard.js"></script>
    <script type="text/javascript" src="../../content_scripts/link_hints.js"></script>
    <!-- TODO(smblott) The following is being overridden by the inclusion of "../../pages/vomnibar.js", below,
         because they both define the same Vomnibar class/object.  As a result, there are currently no tests
         testing the DOM aspects of "../../content_scripts/vomnibar.js".
    <script type="text/javascript" src="../../content_scripts/vomnibar.js"></script>  -->
    <script type="text/javascript" src="../../content_scripts/scroller.js"></script>
    <script type="text/javascript" src="../../content_scripts/vimium_frontend.js"></script>
    <script type="text/javascript" src="../../pages/vomnibar.js"></script>

    <script type="text/javascript" src="../shoulda.js/shoulda.js"></script>
    <script type="text/javascript" src="dom_tests.js"></script>
    <script type="text/javascript" src="dom_utils_test.js"></script>
    <script type="text/javascript" src="vomnibar_test.js"></script>
    <script type="text/javascript" src="test_runner.js"></script>
  </head>
  <body>
    <!-- should always be the first element on the page -->
    <div id="test-div"></div>

    <h1>Vimium Tests</h1>

    <div id="output-div"></div>

    <!-- This is a hack to keep Vomnibar tests working after moving it to an iframe.
         The following are the elements from the iframe so that we can embed the iframe's script without errors.
         TODO(mrmr1993): Look into rewriting the Vomnibar tests so we don't need this. -->
    <div id="vomnibar" class="vimiumReset">
      <div class="vimiumReset vomnibarSearchArea">
        <input type="text" class="vimiumReset">
      </div>
      <ul class="vimiumReset"></ul>
    </div>

  </body>
</html>