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

Unified Diff: test/test_browser_app.js

Issue 10156043: Removes the browser feature flag.
Patch Set: Removes the browser feature flag. Created 11 years, 9 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 | « test/test_app.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_browser_app.js
=== modified file 'test/test_browser_app.js'
--- test/test_browser_app.js 2013-06-07 17:11:13 +0000
+++ test/test_browser_app.js 2013-06-10 18:47:20 +0000
@@ -200,10 +200,19 @@
});
});
+ beforeEach(function() {
+ // Mock out a dummy location for the Store used in view instances.
+ window.juju_config = {
+ charmworldURL: 'http://localhost'
+ };
+ });
+
afterEach(function() {
if (app) {
app.destroy();
}
+
+ window.juju_config = undefined;
});
it('verify that route callables exist', function() {
@@ -241,11 +250,9 @@
path: '/'
};
-
app.routeSidebarDefault(req, null, next);
// The viewmode should be populated now to the default.
assert.equal(req.params.viewmode, 'sidebar');
-
});
it('prevents * route from doing more than sidebar by default', function() {
@@ -274,7 +281,6 @@
assert.equal(req.params.id, 'precise/mysql-10');
});
-
it('/charm/id router ignores other urls', function() {
app = new browser.Browser();
// Stub out the sidebar so we don't render anything.
« no previous file with comments | « test/test_app.js ('k') | no next file » | no next file with comments »

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