~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/tests/test_bug_spam.html

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-12 04:22:31 UTC
  • mfrom: (12929.7.49 spam-button-ui-bugs)
  • Revision ID: launchpad@pqm.canonical.com-20110512042231-9xl7cuvxlv9mjl9h
[r=sinzui][bug=220535] Provides web UI for marking bug comments as
        spam.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
  <head>
 
3
    <title>Launchpad Question Spam Controls</title>
 
4
    <!-- YUI 3.0 Setup -->
 
5
    <script type="text/javascript" src="../../../../canonical/launchpad/icing/yui/yui/yui.js"></script>
 
6
    <script type="text/javascript"
 
7
      src="../../../../canonical/launchpad/icing/lazr/build/lazr.js"></script>
 
8
    <link rel="stylesheet"
 
9
      href="../../../../canonical/launchpad/icing/yui/cssreset/reset.css"/>
 
10
    <link rel="stylesheet"
 
11
      href="../../../../canonical/launchpad/icing/yui/cssfonts/fonts.css"/>
 
12
    <link rel="stylesheet"
 
13
      href="../../../../canonical/launchpad/icing/yui/cssbase/base.css"/>
 
14
    <link rel="stylesheet"
 
15
      href="../../../../canonical/launchpad/javascript/test.css" />
 
16
    <script type="text/javascript" src="../../../app/javascript/client.js"></script>
 
17
    <script type="text/javascript" src="../../../app/javascript/lp.js"></script>
 
18
 
 
19
    <!-- The module under test -->
 
20
    <script type="text/javascript" src="../bug_spam.js"></script>
 
21
 
 
22
    <!-- The test suite -->
 
23
    <script type="text/javascript" src="test_bug_spam.js"></script>
 
24
  </head>
 
25
  <body class="yui-skin-sam">
 
26
 
 
27
    <!-- The example markup required by the script to run -->
 
28
<div class="boardComment">
 
29
  <div class="boardCommentDetails">
 
30
    <table>
 
31
      <tbody>
 
32
        <tr>
 
33
          <td>
 
34
              <a href="https://launchpad.dev/~name12" class="sprite person">
 
35
                  Sample Person
 
36
              </a>
 
37
            wrote
 
38
            <span title="2004-09-24 23:24:03 SAST">on 2004-09-24</span>:
 
39
          </td>
 
40
          <td class="bug-comment-index">
 
41
            <a href="/firefox/+bug/1/comments/1"> #1</a>
 
42
          </td>
 
43
        </tr>
 
44
      </tbody>
 
45
    </table>
 
46
  </div>
 
47
 
 
48
  <div class="boardCommentBody">
 
49
    <div class="bug-comment"><p>Good comment.</p></div>
 
50
  </div>
 
51
 
 
52
  <div class="boardCommentFooter">
 
53
    <a class="js-action sprite edit mark-spam" href="#"
 
54
       id="mark-spam-1">
 
55
         Mark as spam
 
56
    </a>
 
57
  </div>
 
58
</div>
 
59
 
 
60
<div id="hidden-comment" class="boardComment adminHiddenComment">
 
61
  <div class="boardCommentDetails">
 
62
    <table>
 
63
      <tbody>
 
64
        <tr>
 
65
          <td>
 
66
              <a href="https://launchpad.dev/~name12" class="sprite person">
 
67
                  Sample Person
 
68
              </a>
 
69
            wrote
 
70
            <span title="2004-09-24 23:24:03 SAST">on 2004-09-24</span>:
 
71
          </td>
 
72
          <td class="bug-comment-index">
 
73
            <a href="/firefox/+bug/1/comments/1"> #1</a>
 
74
          </td>
 
75
        </tr>
 
76
      </tbody>
 
77
    </table>
 
78
  </div>
 
79
 
 
80
  <div class="boardCommentBody">
 
81
    <div class="bug-comment"><p>Bad comment.</p></div>
 
82
  </div>
 
83
 
 
84
  <div class="boardCommentFooter">
 
85
    <a class="js-action sprite edit mark-spam" href="#"
 
86
       id="mark-spam-2">
 
87
         Mark as not spam
 
88
    </a>
 
89
  </div>
 
90
</div>
 
91
    <!-- The test output -->
 
92
    <div id="log"></div>
 
93
  </body>
 
94
</html>