aboutsummaryrefslogtreecommitdiffstats
path: root/scenario
diff options
context:
space:
mode:
Diffstat (limited to 'scenario')
-rw-r--r--scenario/Runner.html2
-rw-r--r--scenario/widgets-scenario.js3
-rw-r--r--scenario/widgets.html6
3 files changed, 9 insertions, 2 deletions
diff --git a/scenario/Runner.html b/scenario/Runner.html
index ffa08af9..f715b8e5 100644
--- a/scenario/Runner.html
+++ b/scenario/Runner.html
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <script type="text/javascript" src="../src/scenario/bootstrap.js"></script>
+ <script type="text/javascript" src="../src/scenario/angular-bootstrap.js"></script>
<script type="text/javascript" src="widgets-scenario.js"></script>
</head>
<body>
diff --git a/scenario/widgets-scenario.js b/scenario/widgets-scenario.js
index 0d604fc9..ba3ef3cf 100644
--- a/scenario/widgets-scenario.js
+++ b/scenario/widgets-scenario.js
@@ -36,6 +36,9 @@ describe('widgets', function() {
element('input[type="image"]').click();
expect(binding('button').fromJson()).toEqual({'count': 4});
+ element('#navigate a').click();
+ expect(binding('$location.hash')).toEqual('route');
+
/**
* Custom value parser for futures.
*/
diff --git a/scenario/widgets.html b/scenario/widgets.html
index 8960f5f4..a520a326 100644
--- a/scenario/widgets.html
+++ b/scenario/widgets.html
@@ -2,7 +2,6 @@
<html xmlns:ng="http://angularjs.org">
<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
- <script type="text/javascript" src="../libs/jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script>
</head>
<body ng:init="$window.$scope = this">
@@ -94,6 +93,11 @@
</td>
<td></td>
</tr>
+ <tr id="navigate">
+ <td>navigate</td>
+ <td><a href="#route">Go to #route</td>
+ <td>{{$location.hash}}</td>
+ </tr>
</table>
</body>
</html>