Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3028)

Unified Diff: chrome/test/data/webui/test_api.js

Issue 8438063: Make it possible to include another file and port print_preview unit test to unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/test_api.js
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js
index 140efe7d4b5d9c1743d9ac1f96e095b6b39ba325..9d7c4052c30f601a5e7f88f4fceaece73fb4393c 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -110,6 +110,12 @@ var testing = {};
testShouldFail: false,
/**
+ * Add libraries before loading this test file.
dpapad 2011/11/03 16:14:34 Would this be a bit more clear as "Libraries to ad
Sheridan Rawlins 2011/11/05 16:51:25 Done.
+ * @type {Array.<string>}
+ */
+ addLibraries: [],
arv (Not doing code reviews) 2011/11/03 19:04:12 This should just be called libraries or something
Sheridan Rawlins 2011/11/05 16:51:25 Changed to extraLibraries - does that work for you
+
+ /**
* Override this method to perform initialization during preload (such as
* creating mocks and registering handlers).
* @type {Function}
@@ -852,6 +858,11 @@ var testing = {};
function GEN() {}
/**
+ * During generation phase, this outputs; do nothing at runtime.
+ */
+ function GEN_INCLUDE() {}
+
+ /**
* At runtime, register the testName with a test fixture. Since this method
* doesn't have a test fixture, create a dummy fixture to hold its |name|
* and |testCaseBodies|.
@@ -1304,6 +1315,7 @@ var testing = {};
window.TEST = TEST;
window.TEST_F = TEST_F;
window.GEN = GEN;
+ window.GEN_INCLUDE = GEN_INCLUDE;
window.WhenTestDone = WhenTestDone;
// Import the Mock4JS helpers.

Powered by Google App Engine
This is Rietveld 408576698