I am using angular version 1 with jasmine for my unit tests.
The test I want to do is:
When I load the index.html page in ie7, for example, I load it into the html banner that the last browser will download.
I am currently loading an html template using jQuery on an index page.
Is it possible to verify this, since outside the application is angular.
This is my current code on my index.html page:
<!doctype html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<base href="/app/" />
<script>
if(window.angular === undefined)
$(function(){$("#angularNotSupportedModal").load("/app/noAngularModal.html");});
</script>
</head>
<body ng-app="app" ng-cloak>
<div id="angularNotSupportedModal"></div>
<div ui-view></div>
<script src="/scripts/app.js"></script>
<script src="/scripts/config.js"></script>
</body>
</html>
Any suggestions would be great.
thank
source
share