~launchpad-pqm/launchpad/devel

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
72
73
74
75
76
77
78
79
<html>
  <head>
  <title>File bug functionality</title>

  <!-- YUI and test setup -->
  <script type="text/javascript"
          src="../../../../canonical/launchpad/icing/yui/yui/yui.js">
  </script>
  <link rel="stylesheet" href="../../../app/javascript/testing/test.css" />
  <script type="text/javascript"
          src="../../../app/javascript/testing/testrunner.js"></script>

    <script type="text/javascript"
            src="../../../app/javascript/client.js"></script>
    <script type="text/javascript"
            src="../../../app/javascript/errors.js"></script>

    <!-- Some required dependencies -->
    <script type="text/javascript" src="../../../app/javascript/effects/effects.js"></script>
    <script type="text/javascript" src="../../../app/javascript/overlay/overlay.js"></script>
    <script type="text/javascript" src="../../../app/javascript/formwidgets/resizing_textarea.js"></script>

    <!-- The module under test -->
    <script type="text/javascript"
            src="../filebug_dupefinder.js"></script>

    <!-- The test suite -->
    <script type="text/javascript"
            src="test_filebug_dupfinder.js"></script>

    <!-- Pretty up the sample html -->
    <style type="text/css">
        div#sample {margin:15px; width:200px; border:1px solid #999; padding:10px;}
    </style>
</head>
<body class="yui3-skin-sam">
<!-- Example markup required by test suite -->
<div id="test-root">
    <form id="filebug-search-form" enctype="multipart/form-data" method="post" action="">
    <table>
        <tr id="search-field">
            <td>
                <div>
                    <label for="field.title">Summary:</label>
                    <input type="text" value="" size="40" name="field.title" id="field.title"/>
                </div>
            </td>
            <td>
                <input type="submit" class="button" value="Next" name="field.actions.search" id="field.actions.search"/>
            </td>
        </tr>
    </table>
    </form>
    <div id='spinner'></div>
    <div id='possible-duplicates'></div>
    <div style="opacity: 0; display: none" class="transparent" id="filebug-form-container">
        <div id="bug-reporting-form">
            <label for="field.title">Summary:</label>
            <input type="text" value="" size="40" name="field.title" id="field.title"/>
            <div>
                <form id="filebug-form" method="post" action="#">
                    <label for="field.comment">Comment:</label>
                    <input type="text" value="" size="40" name="field.comment" id="field.comment"/>
                    <div id="extra-filebug-details"></div>
                    <div class="actions">
                        <input type="submit" class="button" value="Submit Bug Report" name="field.actions.submit_bug" id="field.actions.submit_bug"/>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <p style="display: none">
        <a id="filebug-base-url" href="https://bugs.launchpad.dev/"></a>
        <a id="filebug-form-url" href="https://bugs.launchpad.dev/foo/+filebug-inline-form"></a>
        <a id="duplicate-search-url" href="https://bugs.launchpad.dev/foo/+filebug-show-similar"></a>
    </p>
</div>
</body>
</html>