From 18391589790984963f922ba9951300c536b871b5 Mon Sep 17 00:00:00 2001 From: Allen Hernandez Date: Sat, 31 May 2014 16:55:02 -0700 Subject: [PATCH] fix(test): Use HTML5 doctype on all tests. Closes #1539, #1524 --- test/html/actionsheet.html | 1 + test/html/back-button.html | 2 +- test/html/carousel.html | 2 +- test/html/clickTests2.html | 1 + test/html/content.html | 8 ++++---- test/html/content_defer.html | 2 +- test/html/content_h.html | 2 +- test/html/embeddedObject.html | 2 +- test/html/gesture.html | 2 +- test/html/has-anything-dynamic.html | 1 + test/html/header.html | 1 + test/html/history.html | 1 + test/html/infinite-scroll.html | 6 +++--- test/html/list-fit.html | 2 +- test/html/list.html | 1 + test/html/loading.html | 2 +- test/html/map.html | 1 + test/html/modal.html | 2 +- test/html/overflow.html | 2 +- test/html/platforms.html | 3 ++- test/html/poly.html | 2 +- test/html/popup.html | 2 +- test/html/rememberScroll.html | 2 +- test/html/scroll.html | 2 +- test/html/scroll2.html | 2 +- test/html/scroll_xy.html | 1 + test/html/sideMenu.html | 2 +- test/html/sideMenu2.html | 2 +- test/html/slideBox.html | 2 +- test/html/slideBoxDynamic.html | 2 +- test/html/subControllers.html | 2 +- test/html/tabs-repeat.html | 1 + test/html/tabs.html | 1 + test/html/toggle.html | 2 +- test/html/viewState.html | 1 + 35 files changed, 41 insertions(+), 29 deletions(-) diff --git a/test/html/actionsheet.html b/test/html/actionsheet.html index a7100c3ee6b..af586347704 100644 --- a/test/html/actionsheet.html +++ b/test/html/actionsheet.html @@ -1,3 +1,4 @@ + diff --git a/test/html/back-button.html b/test/html/back-button.html index e5f1a8d9e71..dd56953939a 100644 --- a/test/html/back-button.html +++ b/test/html/back-button.html @@ -1,4 +1,4 @@ - + diff --git a/test/html/carousel.html b/test/html/carousel.html index 65438ddb555..f2e20560ba5 100644 --- a/test/html/carousel.html +++ b/test/html/carousel.html @@ -1,3 +1,4 @@ + @@ -91,4 +92,3 @@

Any questions?

- diff --git a/test/html/clickTests2.html b/test/html/clickTests2.html index 04d7120bf33..f2ca6d869a5 100644 --- a/test/html/clickTests2.html +++ b/test/html/clickTests2.html @@ -1,3 +1,4 @@ + diff --git a/test/html/content.html b/test/html/content.html index 1e695dcd1aa..a260d47addc 100644 --- a/test/html/content.html +++ b/test/html/content.html @@ -1,3 +1,4 @@ + @@ -89,10 +90,10 @@

Title

link: function($scope, $element, $attr) { var starty = $scope.$eval($attr.headerShrink) || 0; var shrinkAmt; - + var header = $document[0].body.querySelector('.bar-header'); var headerHeight = header.offsetHeight; - + $element.bind('scroll', function(e) { if(e.detail.scrollTop > starty) { // Start shrinking @@ -106,7 +107,7 @@

Title

} }) - + .directive('hidesHeader', function() { return { @@ -160,4 +161,3 @@

Title

- diff --git a/test/html/content_defer.html b/test/html/content_defer.html index 934ed176297..804624183d9 100644 --- a/test/html/content_defer.html +++ b/test/html/content_defer.html @@ -1,3 +1,4 @@ + @@ -102,4 +103,3 @@

Title

- diff --git a/test/html/content_h.html b/test/html/content_h.html index 34f80d8fa9e..5e9b48c9b28 100644 --- a/test/html/content_h.html +++ b/test/html/content_h.html @@ -1,3 +1,4 @@ + @@ -129,4 +130,3 @@

Title

- diff --git a/test/html/embeddedObject.html b/test/html/embeddedObject.html index 52fe3f56b76..1bfd990e649 100644 --- a/test/html/embeddedObject.html +++ b/test/html/embeddedObject.html @@ -1,3 +1,4 @@ + @@ -75,4 +76,3 @@

Title

- diff --git a/test/html/gesture.html b/test/html/gesture.html index 6445201fa01..2ddf9b47a9d 100644 --- a/test/html/gesture.html +++ b/test/html/gesture.html @@ -1,3 +1,4 @@ + @@ -92,4 +93,3 @@ - diff --git a/test/html/has-anything-dynamic.html b/test/html/has-anything-dynamic.html index d79fd01bd86..b440d045634 100644 --- a/test/html/has-anything-dynamic.html +++ b/test/html/has-anything-dynamic.html @@ -1,3 +1,4 @@ + diff --git a/test/html/header.html b/test/html/header.html index fdb68e7f9bc..183020b1154 100644 --- a/test/html/header.html +++ b/test/html/header.html @@ -1,3 +1,4 @@ + diff --git a/test/html/history.html b/test/html/history.html index e04f0d4ad96..7ef8d3b834b 100644 --- a/test/html/history.html +++ b/test/html/history.html @@ -1,3 +1,4 @@ + diff --git a/test/html/infinite-scroll.html b/test/html/infinite-scroll.html index a185b49732b..3be794b3421 100644 --- a/test/html/infinite-scroll.html +++ b/test/html/infinite-scroll.html @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ - + diff --git a/test/html/list-fit.html b/test/html/list-fit.html index b181e6e31dd..7843428b87c 100644 --- a/test/html/list-fit.html +++ b/test/html/list-fit.html @@ -1,4 +1,4 @@ - + diff --git a/test/html/list.html b/test/html/list.html index e9e0affe7df..d4c2824abb1 100644 --- a/test/html/list.html +++ b/test/html/list.html @@ -1,3 +1,4 @@ + diff --git a/test/html/loading.html b/test/html/loading.html index 97c3112ed0e..fae95596691 100644 --- a/test/html/loading.html +++ b/test/html/loading.html @@ -1,3 +1,4 @@ + @@ -27,4 +28,3 @@ - diff --git a/test/html/map.html b/test/html/map.html index 175e37e073b..0c91fb590e8 100644 --- a/test/html/map.html +++ b/test/html/map.html @@ -1,3 +1,4 @@ + diff --git a/test/html/modal.html b/test/html/modal.html index 4b7ee0963f1..5de3daaaafd 100644 --- a/test/html/modal.html +++ b/test/html/modal.html @@ -1,3 +1,4 @@ + @@ -147,4 +148,3 @@

New Contact

- diff --git a/test/html/overflow.html b/test/html/overflow.html index 09e5d298c0a..f8d6a25b469 100644 --- a/test/html/overflow.html +++ b/test/html/overflow.html @@ -1,3 +1,4 @@ + @@ -121,4 +122,3 @@

Right

- diff --git a/test/html/platforms.html b/test/html/platforms.html index 1ca4b8e4e90..af4016451b9 100644 --- a/test/html/platforms.html +++ b/test/html/platforms.html @@ -1,3 +1,4 @@ + @@ -152,7 +153,7 @@

About

}) .controller('AppCtrl', function($scope) { - + }); diff --git a/test/html/poly.html b/test/html/poly.html index a4fefd656dd..583d7955e79 100644 --- a/test/html/poly.html +++ b/test/html/poly.html @@ -1,3 +1,4 @@ + @@ -57,4 +58,3 @@

Polyfill Tests

- diff --git a/test/html/popup.html b/test/html/popup.html index caac135a627..615bd4ed3cf 100644 --- a/test/html/popup.html +++ b/test/html/popup.html @@ -1,3 +1,4 @@ + @@ -148,4 +149,3 @@ - diff --git a/test/html/rememberScroll.html b/test/html/rememberScroll.html index 3897da5fb36..fbba1551759 100644 --- a/test/html/rememberScroll.html +++ b/test/html/rememberScroll.html @@ -1,3 +1,4 @@ + @@ -32,4 +33,3 @@ - diff --git a/test/html/scroll.html b/test/html/scroll.html index 0c6db4fef9c..89a523febea 100644 --- a/test/html/scroll.html +++ b/test/html/scroll.html @@ -1,3 +1,4 @@ + @@ -173,4 +174,3 @@

Hourly Forecast

- diff --git a/test/html/scroll2.html b/test/html/scroll2.html index 1aa48185622..e471f8bc2e7 100644 --- a/test/html/scroll2.html +++ b/test/html/scroll2.html @@ -1,3 +1,4 @@ + @@ -194,4 +195,3 @@ - diff --git a/test/html/scroll_xy.html b/test/html/scroll_xy.html index e193b8bc786..1aa9c181f09 100644 --- a/test/html/scroll_xy.html +++ b/test/html/scroll_xy.html @@ -1,3 +1,4 @@ + diff --git a/test/html/sideMenu.html b/test/html/sideMenu.html index 84c5fc8dd10..0dc93dacd4b 100644 --- a/test/html/sideMenu.html +++ b/test/html/sideMenu.html @@ -1,3 +1,4 @@ + @@ -85,4 +86,3 @@

Right

- diff --git a/test/html/sideMenu2.html b/test/html/sideMenu2.html index eb492ab56de..aaf665be893 100644 --- a/test/html/sideMenu2.html +++ b/test/html/sideMenu2.html @@ -1,3 +1,4 @@ + @@ -304,4 +305,3 @@

Contact us

- diff --git a/test/html/slideBox.html b/test/html/slideBox.html index 05c6f68e9c0..3c67f59630e 100644 --- a/test/html/slideBox.html +++ b/test/html/slideBox.html @@ -1,3 +1,4 @@ + @@ -181,4 +182,3 @@

Right

- diff --git a/test/html/slideBoxDynamic.html b/test/html/slideBoxDynamic.html index 43cd663e789..ed2fd39d105 100644 --- a/test/html/slideBoxDynamic.html +++ b/test/html/slideBoxDynamic.html @@ -1,3 +1,4 @@ + @@ -77,4 +78,3 @@ - diff --git a/test/html/subControllers.html b/test/html/subControllers.html index d084998fd68..aa9aeb4ee4f 100644 --- a/test/html/subControllers.html +++ b/test/html/subControllers.html @@ -1,3 +1,4 @@ + @@ -119,4 +120,3 @@

Settings

- diff --git a/test/html/tabs-repeat.html b/test/html/tabs-repeat.html index 536d9764e6e..caec07bac96 100644 --- a/test/html/tabs-repeat.html +++ b/test/html/tabs-repeat.html @@ -1,3 +1,4 @@ + diff --git a/test/html/tabs.html b/test/html/tabs.html index b749a68f563..32fbb8872e5 100644 --- a/test/html/tabs.html +++ b/test/html/tabs.html @@ -1,3 +1,4 @@ + diff --git a/test/html/toggle.html b/test/html/toggle.html index 5a2c78a5034..ed93bcdae2c 100644 --- a/test/html/toggle.html +++ b/test/html/toggle.html @@ -1,3 +1,4 @@ + @@ -39,4 +40,3 @@

Toggle

- diff --git a/test/html/viewState.html b/test/html/viewState.html index c411c40065e..6b6d1370658 100644 --- a/test/html/viewState.html +++ b/test/html/viewState.html @@ -1,3 +1,4 @@ +