andykent / polypage

A jQuery plugin to ease the development of dynamic html wireframes with state.

This URL has Read+Write access

polypage / spec / index.html
100644 83 lines (68 sloc) 3.074 kb
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
80
81
82
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 
<title>Polypage Test Suite</title>
 
  <!-- Screw Unit Requirements -->
<script src="../lib/jquery.js"></script>
  <script src="screw-unit/jquery.fn.js"></script>
  <script src="screw-unit/jquery.print.js"></script>
  <script src="screw-unit/screw.builder.js"></script>
  <script src="screw-unit/screw.matchers.js"></script>
  <script src="screw-unit/screw.events.js"></script>
  <script src="screw-unit/screw.behaviors.js"></script>
  <link rel="stylesheet" href="screw-unit/screw.css" />
  
  <!-- Custom Matchers -->
  <script src="matchers.js"></script>
  
  <!-- PolyPage Requirements -->
  <script src="../lib/polypage.jquery.js"></script>
  <script src="../lib/events.polypage.jquery.js"></script>
  <script src="../lib/cookie.polypage.jquery.js"></script>
  <script src="../lib/gui.polypage.jquery.js"></script>
  <script src="../lib/keyboard.polypage.jquery.js"></script>
  <link rel="stylesheet" href="../skins/default.css" />
  
  <style type="text/css" media="screen">
    #dom {
      position: absolute;
      left: -1000em;
    }
  </style>
</head>
 
<body>
  <div id="dom">
    
    <a id="toggle_logged_in_link" href="#pp_toggle_logged_in"><strong>Log In Toggle</strong></a>
    <a id="set_logged_in_true_link" href="#pp_set_logged_in_true"><strong>Log In</strong></a>
    <a id="set_logged_in_false_link" href="#pp_set_logged_in_false"><strong>Log Out</strong></a>
    
    <form id="toggle_logged_in_form" action="#pp_toggle_logged_in" method="get">
      <p><input type="submit" value="Log in"/></p>
    </form>
    
    <ul id="underscored">
      <li>No Class</li>
      <li class=" test_class pp_logged_in">pp_logged_in</li>
      <li class="pp_admin">pp_admin</li>
      <li class="pp_not_logged_in other_test_class">pp_not_logged_in</li>
      <li class="test_class pp_logged_in_or_admin other_test_class">pp_logged_in_or_admin</li>
      <li class="pp_logged_in_and_admin">pp_logged_in_and_admin</li>
      <li class="pp_not_logged_in_and_not_admin">pp_not_logged_in_and_not_admin</li>
    </ul>
 
    <ul id="dashed">
      <li>No Class</li>
      <li class=" test-class pp-logged-in">pp-logged-in</li>
      <li class="pp-not-logged-in other-test-class">pp-not-logged-in</li>
      <li class="test-class pp-logged-in-or-admin other-test-class">pp-logged-in-or-admin</li>
      <li class="pp-logged-in-and-admin">pp-logged-in-and-admin</li>
      <li class="pp-not-logged-in-and-not-admin">pp-not-logged-in-and-not-admin</li>
    </ul>
  </div>
  
  
  <!-- Setup -->
  <script type="text/javascript" charset="utf-8">
      $('#dom').polypage();
  </script>
  
  <!-- Specs -->
  <script src="polypage-base-spec.js"></script>
  <script src="polypage-events-spec.js"></script>
  <script src="polypage-gui-spec.js"></script>
  <script src="polypage-cookie-spec.js"></script>
</body>
</html>