Permalink
Browse files

Panel tests. Still needs a minor bit of cleanup, but has good panel c…

…overage.
  • Loading branch information...
1 parent 191bc69 commit 64d1a4937c888679af71dd2801141611307d618a @zachleat committed Dec 28, 2012
Showing with 270 additions and 131 deletions.
  1. +15 −113 tests/unit/panel/index.html
  2. +255 −18 tests/unit/panel/panel_core.js
@@ -39,126 +39,28 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>
- <div id="qunit-fixture">
-
- <!-- Basic Panel test -->
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id="panel-test-1">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-1">Open Panel</a>
- </div>
+ <div data-nstest-role="page">
+ <div data-nstest-role="panel" id="panel-test-stock">
+ <p>Contents of a panel.</p>
</div>
-
-
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id="panel-test-2" data-animate="false">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-2">Open Panel</a>
- </div>
+ <div data-nstest-role="panel" id="panel-test-non-default-theme" data-nstest-theme="c">
+ <p>Contents of a panel.</p>
</div>
-
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id="panel-test-3" data-theme="c">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-3">Open Panel</a>
- </div>
+ <div data-nstest-role="panel" id="panel-test-with-close">
+ <p>Contents of a panel.</p>
+ <a href="#demo-links" data-nstest-rel="close" data-nstest-role="button">Close panel</a>
</div>
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id='panel-tes4' data-position="right">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-4">Open Panel</a>
- </div>
+ <div data-nstest-role="header">
+ <h1>Panel Test</h1>
</div>
-
-
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id='panel-test-5' data-display="push">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-5">Open Panel</a>
- </div>
+ <div data-nstest-role="content">
+ <h1 id="demo-links">Panels</h1>
+ <a href="#panel-test-stock">Open Panel</a>
+ <a href="#panel-test-non-default-theme">Open Panel</a>
+ <a href="#panel-test-with-close">Open Panel</a>
</div>
-
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id='panel-test-6' data-display="reveal">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-6">Open Panel</a>
- </div>
- </div>
-
- <div data-nstest-role="page" >
- <div data-nstest-role="panel" id='panel-test-7' data-display="push" data-position="right">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-7">Open Panel</a>
- </div>
- </div>
-
- <div data-nstest-role="page" >
- <div data-nstest-role="panel" id='panel-test-8' data-display="reveal" data-position="right">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-8">Open Panel</a>
- </div>
- </div>
-
- <div data-nstest-role="page">
- <div data-nstest-role="panel" id='panel-test-8' data-dismissible="false">
- <p>Contents of a panel.</p>
- </div>
- <div data-nstest-role="header">
- <h1>Panel Test</h1>
- </div>
- <div data-nstest-role="content">
- <a href="#panel-test-9">Open Panel</a>
- </div>
- </div>
-
-
-
-
-
-
</div>
-
</body>
</html>
Oops, something went wrong.

0 comments on commit 64d1a49

Please sign in to comment.