Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14)

Unified Diff: test/index.html

Issue 7007047: Add user login support.
Patch Set: Add user login support. Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/views/login.js ('k') | test/test_app.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/index.html
=== modified file 'test/index.html'
--- test/index.html 2012-12-21 12:06:26 +0000
+++ test/index.html 2013-01-07 21:38:42 +0000
@@ -13,10 +13,34 @@
<script src="assets/mocha.js"></script>
<script src="utils.js"></script>
<script>
+ noLogin = true;
var assert = chai.assert,
expect = chai.expect
should = chai.should();
- mocha.setup({'ui': 'bdd', 'ignoreLeaks': false})
+ mocha.setup({ui: 'bdd', ignoreLeaks: false})
+ </script>
+
+ <script>
+ YUI().use('node', 'event', function(Y) {
+ var config = GlobalConfig;
+ for (group in config.groups) {
+ var group = config.groups[group];
+ for (m in group.modules) {
+ var resource = group.modules[m];
+ if (!m || !resource.fullpath) {
+ continue
+ }
+ resource.fullpath = resource.fullpath.replace(
+ '/juju-ui/', '../juju-ui/', 1);
+ // If we load modules asyncronously then the module loading may take
+ // so long that the test definitions (and before/after calls) happen
+ // *after* the test runner is invoked. In this case the test runner
+ // will not know about the tests and therefore not run them.
+ resource.async = false;
+ }
+ }
+ Y.on('domready', mocha.run);
+ });
</script>
<script src="test_d3_components.js"></script>
@@ -33,6 +57,7 @@
<script src="test_service_config_view.js"></script>
<script src="test_service_view.js"></script>
<script src="test_utils.js"></script>
+ <script src="test_login.js"></script>
<script src="test_charm_panel.js"></script>
<script src="test_charm_configuration.js"></script>
<script src="test_console.js"></script>
@@ -42,27 +67,6 @@
<script src="test_app_hotkeys.js"></script>
<script src="test_notifier_widget.js"></script>
- <script>
- YUI().use('node', 'event', function(Y) {
- Y.on('domready', function() {
-
- var config = GlobalConfig;
- for (group in config.groups) {
- var group = config.groups[group];
- for (m in group.modules) {
- var resource = group.modules[m];
- if (!m || !resource.fullpath) {
- continue
- }
- resource.fullpath = resource.fullpath.replace(
- '/juju-ui/', '../juju-ui/', 1);
- }
- }
- // Load before test runner
- mocha.run();
- });
- });
- </script>
</head>
« no previous file with comments | « app/views/login.js ('k') | test/test_app.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b