Permalink
Browse files

Demos: Make casper tests check for JS errors and fail if any are found

  • Loading branch information...
1 parent de70416 commit cb9112abb3acf73abc104051ac318647055b189c @arschmitz arschmitz committed Jun 19, 2014
Showing with 507 additions and 243 deletions.
  1. +208 −128 Gruntfile.js
  2. +2 −2 demos/backbone-requirejs/js/main.js
  3. +3 −3 demos/datepicker/index.php
  4. +11 −11 demos/icons/index.php
  5. +2 −2 demos/jqm-contents.php
  6. +1 −1 demos/listview-nested-lists/index.php
  7. +55 −55 demos/listview/index.php
  8. +1 −1 demos/map-list-toggle/index.php
  9. +1 −1 demos/navigation/index.php
  10. +1 −1 demos/page-events/alertevents-2.php
  11. +1 −2 demos/page-events/alertevents-3.php
  12. +2 −2 demos/page-events/alertevents.php
  13. +1 −1 demos/page-events/index.php
  14. +1 −2 demos/page-events/logevents-2.php
  15. +1 −2 demos/page-events/logevents-3.php
  16. +2 −2 demos/page-events/logevents.php
  17. +2 −2 demos/pages-dialog/dialog-alt.html
  18. +1 −1 demos/pages-dialog/dialog-buttons.html
  19. +1 −1 demos/pages-dialog/dialog-corners.html
  20. +1 −1 demos/pages-dialog/dialog-noclosebtn.html
  21. +1 −1 demos/pages-dialog/dialog-overlay.html
  22. +1 −1 demos/pages-dialog/dialog-rightclosebtn.html
  23. +2 −2 demos/pages-dialog/dialog.html
  24. +1 −1 demos/pages-dialog/index.php
  25. +2 −2 demos/popup-outside-multipage/index.php
  26. +3 −3 demos/popup/index.php
  27. 0 demos/tabs/{ajax-content.php → ajax-content-ignore.php}
  28. +2 −2 demos/tabs/index.php
  29. +1 −2 demos/tabs/tabbed-content.php
  30. +1 −1 demos/toolbar-fixed-persistent-optimized/page-c.php
  31. +2 −2 demos/toolbar-fixed-persistent-optimized/page-d.php
  32. +1 −1 demos/toolbar-fixed-persistent/page-c.php
  33. +2 −2 demos/toolbar-fixed-persistent/page-d.php
  34. +1 −1 demos/toolbar-fixed/index.php
  35. +5 −0 external/jquery/jquery.min.js
  36. +1 −0 external/jquery/jquery.min.map
  37. +1 −1 package.json
  38. +175 −0 tests/casperjs/demos.test.js
  39. +7 −0 tests/integration/pagecontainer/page_event_sequence_core.js
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -9,8 +9,8 @@ require.config( {
// Core Libraries
"jquery": "../external/jquery/jquery",
"jquerymobile": "jquery.mobile",
- "underscore": "//rawgithub.com/lodash/lodash/2.4.1/dist/lodash",
- "backbone": "//rawgithub.com/jashkenas/backbone/0.9.2/backbone",
+ "underscore": "//cdn.jsdelivr.net/lodash/2.4.1/lodash.min",
+ "backbone": "//cdn.jsdelivr.net/backbonejs/1.1.2/backbone-min",
"backbone-requirejs-demos": "../demos/backbone-requirejs/js"
},
@@ -8,12 +8,12 @@
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
- <link rel="stylesheet" href="https://rawgithub.com/arschmitz/jquery-mobile-datepicker-wrapper/v0.1.1/jquery.mobile.datepicker.css">
+ <link rel="stylesheet" href="http://rawgithub.com/arschmitz/jquery-mobile-datepicker-wrapper/v0.1.1/jquery.mobile.datepicker.css">
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
- <script src="https://rawgithub.com/jquery/jquery-ui/1.10.4/ui/jquery.ui.datepicker.js"></script>
- <script id="mobile-datepicker" src="https://rawgithub.com/arschmitz/jquery-mobile-datepicker-wrapper/v0.1.1/jquery.mobile.datepicker.js"></script>
+ <script src="http://rawgithub.com/jquery/jquery-ui/1.10.4/ui/jquery.ui.datepicker.js"></script>
+ <script id="mobile-datepicker" src="http://rawgithub.com/arschmitz/jquery-mobile-datepicker-wrapper/v0.1.1/jquery.mobile.datepicker.js"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">
View
@@ -121,18 +121,18 @@
<p>By default, icons in <code>input</code> buttons are placed to the left of the button text. This default may be overridden using the <code>data-iconpos</code> attribute to set the icon position to "right", "top", or "bottom". In case of link buttons or <code>button</code> elements you have to add an icon position class (<code>ui-btn-icon-[value]</code>).</p>
<div data-demo-html="true">
- <a href="index.html" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-l ui-btn-icon-left">Left</a>
- <a href="index.html" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-r ui-btn-icon-right">Right</a>
- <a href="index.html" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-u ui-btn-icon-top">Top</a>
- <a href="index.html" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-d ui-btn-icon-bottom">Bottom</a>
+ <a href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-l ui-btn-icon-left">Left</a>
+ <a href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-r ui-btn-icon-right">Right</a>
+ <a href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-u ui-btn-icon-top">Top</a>
+ <a href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-arrow-d ui-btn-icon-bottom">Bottom</a>
</div><!--/demo-html -->
<h2>Icon-only</h2>
<p>Use "notext" as value for icon position if you want to create an icon-only button.</p>
<div data-demo-html="true">
- <a href="index.html" class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext">Delete</a>
+ <a href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext">Delete</a>
</div><!--/demo-html -->
<h2>Icon shadow</h2>
@@ -142,17 +142,17 @@
<p><strong>Note: Icon shadow (option <code>iconShadow</code> in the button widget and class <code>ui-shadow-icon</code>) is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</strong></p>
<div data-demo-html="true">
- <a href="index.html" class="ui-shadow-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">Icon shadow</a>
- <a href="index.html" class="ui-shadow-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">Icon shadow</a>
+ <a href="index.php" class="ui-shadow-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">Icon shadow</a>
+ <a href="index.php" class="ui-shadow-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">Icon shadow</a>
</div><!--/demo-html -->
<h2>Removing the disc</h2>
<p>The semi-transparent dark circle behind the icon ensures good contrast on any background color so it works well with the jQuery Mobile theming system. If you prefer to not have this disc, it can be removed by adding the class <code>ui-nodisc-icon</code> to the element or its container.</p>
<div data-demo-html="true">
- <a href="index.html" class="ui-nodisc-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">No disc</a>
- <a href="index.html" class="ui-nodisc-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">No disc</a>
+ <a href="index.php" class="ui-nodisc-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">No disc</a>
+ <a href="index.php" class="ui-nodisc-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">No disc</a>
</div><!--/demo-html -->
<p>Example of the class being applied to a wrapper.</p>
@@ -171,8 +171,8 @@
<p>Icons are white by default but you can switch to black icons by adding the <code>ui-alt-icon</code> class to the element or its container. This also changes the color that is used for the discs.</p>
<div data-demo-html="true">
- <a href="index.html" class="ui-alt-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">Alt icon</a>
- <a href="index.html" class="ui-alt-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">Alt icon</a>
+ <a href="index.php" class="ui-alt-icon ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-left">Alt icon</a>
+ <a href="index.php" class="ui-alt-icon ui-btn ui-shadow ui-corner-all ui-btn-b ui-icon-delete ui-btn-icon-left">Alt icon</a>
</div><!--/demo-html -->
<p>Example of the class being applied to a wrapper.</p>
View
@@ -134,7 +134,7 @@
<ul>
<li data-filtertext="ajax navigation navigate widget history event method"><a href="../navigation/" data-ajax="false">Navigation</a></li>
<li data-filtertext="linking pages page links navigation ajax prefetch cache"><a href="../navigation-linking-pages/" data-ajax="false">Linking pages</a></li>
- <li data-filtertext="php redirect server redirection server-side navigation"><a href="../navigation-php-redirect/" data-ajax="false">PHP redirect demo</a></li>
+ <!-- <li data-filtertext="php redirect server redirection server-side navigation"><a href="../navigation-php-redirect/" data-ajax="false">PHP redirect demo</a></li>-->
<li data-filtertext="navigation redirection hash query"><a href="../navigation-hash-processing/" data-ajax="false">Hash processing demo</a></li>
<li data-filtertext="navigation redirection hash query"><a href="../page-events/" data-ajax="false">Page Navigation Events</a></li>
</ul>
@@ -187,7 +187,7 @@
<li data-filtertext="dynamic popups popup images lightbox"><a href="../popup-dynamic/" data-ajax="false">Dynamic popups</a></li>
<li data-filtertext="popups with iframes scaling"><a href="../popup-iframe/" data-ajax="false">Popups with iframes</a></li>
<li data-filtertext="popup image scaling"><a href="../popup-image-scaling/" data-ajax="false">Popup image scaling</a></li>
- <li data-filtertext="external popup outside multi-page"><a href="../popup-outside-multipage" data-ajax="false">Popup outside multi-page</a></li>
+ <li data-filtertext="external popup outside multi-page"><a href="../popup-outside-multipage/" data-ajax="false">Popup outside multi-page</a></li>
</ul>
</div>
</li>
@@ -11,7 +11,7 @@
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
- <script id="script" src="https://rawgithub.com/arschmitz/jquery-mobile-nestedlists/master/jquery.mobile.nestedlists.js"></script>
+ <script id="script" src="http://rawgithub.com/arschmitz/jquery-mobile-nestedlists/master/jquery.mobile.nestedlists.js"></script>
</head>
<body>
<div data-role="page" class="jqm-demos" data-quicklinks="true">
Oops, something went wrong.

0 comments on commit cb9112a

Please sign in to comment.