Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #1524, add doctypes to all .html files under test/ #1539

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/html/actionsheet.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="actionTest">
<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion test/html/back-button.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
Expand Down
2 changes: 1 addition & 1 deletion test/html/carousel.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="slideBoxTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -91,4 +92,3 @@ <h3>Any questions?</h3>
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/clickTests2.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionicApp">
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
Expand Down
8 changes: 4 additions & 4 deletions test/html/content.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -89,10 +90,10 @@ <h1 class="title">Title</h1>
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
Expand All @@ -106,7 +107,7 @@ <h1 class="title">Title</h1>
}
})



.directive('hidesHeader', function() {
return {
Expand Down Expand Up @@ -160,4 +161,3 @@ <h1 class="title">Title</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/content_defer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -102,4 +103,3 @@ <h1 class="title">Title</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/content_h.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -129,4 +130,3 @@ <h1 class="title">Title</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/embeddedObject.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -75,4 +76,3 @@ <h1 class="title">Title</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/gesture.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="gestureTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -92,4 +93,3 @@
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/has-anything-dynamic.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
Expand Down
1 change: 1 addition & 0 deletions test/html/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="headerTest">
<head>
<meta charset="utf-8">
Expand Down
1 change: 1 addition & 0 deletions test/html/history.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Expand Down
6 changes: 3 additions & 3 deletions test/html/infinite-scroll.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<!DOCTYPE html>
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
Expand All @@ -22,7 +22,7 @@
<ion-infinite-scroll on-infinite="onInfinite()" distance="5px"></ion-infinite-scroll>

</ion-content>

<script>
angular.module('ionicApp', ['ionic'])

Expand All @@ -46,7 +46,7 @@
for(var i = 0; i < 10; i++) {
$scope.data.items.push({ title: 'Item ' + i });
}

}]);
</script>

Expand Down
2 changes: 1 addition & 1 deletion test/html/list-fit.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta charset="utf-8">
Expand Down
1 change: 1 addition & 0 deletions test/html/list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionicApp">
<head>

Expand Down
2 changes: 1 addition & 1 deletion test/html/loading.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionic.example">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -27,4 +28,3 @@
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/map.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="test">
<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion test/html/modal.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="modalTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -147,4 +148,3 @@ <h1 class="title">New Contact</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/overflow.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -121,4 +122,3 @@ <h1 class="title">Right</h1>
</script>
</body>
</html>

3 changes: 2 additions & 1 deletion test/html/platforms.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navState">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -152,7 +153,7 @@ <h1>About</h1>
})

.controller('AppCtrl', function($scope) {

});
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion test/html/poly.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionicTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -57,4 +58,3 @@ <h1 class="title">Polyfill Tests</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/popup.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionic.example">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -148,4 +149,3 @@
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/rememberScroll.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -32,4 +33,3 @@
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/scroll.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -173,4 +174,3 @@ <h3>Hourly Forecast</h3>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/scroll2.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -194,4 +195,3 @@
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/scroll_xy.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navTest">
<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion test/html/sideMenu.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="sideMenuTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -85,4 +86,3 @@ <h1 class="title">Right</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/sideMenu2.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -304,4 +305,3 @@ <h2>Contact us</h2>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/slideBox.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="slideBoxTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -181,4 +182,3 @@ <h1 class="title">Right</h1>
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/slideBoxDynamic.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="slideBoxTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -77,4 +78,3 @@
</script>
</body>
</html>

2 changes: 1 addition & 1 deletion test/html/subControllers.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="sideMenuTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -119,4 +120,3 @@ <h1>Settings</h1>
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/tabs-repeat.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta charset="utf-8">
Expand Down
1 change: 1 addition & 0 deletions test/html/tabs.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="tabsTest">
<head>
<meta charset="utf-8">
Expand Down
2 changes: 1 addition & 1 deletion test/html/toggle.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="toggleTest">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -39,4 +40,3 @@ <h1 class="title">Toggle</h1>
</script>
</body>
</html>

1 change: 1 addition & 0 deletions test/html/viewState.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html ng-app="navState">
<head>
<meta charset="utf-8">
Expand Down