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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/background.js

Issue 288513002: Files.app: Specify a test case name to the test system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/file_manager_browsertest/background.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/background.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/background.js
index 0ac4292cbd709a083592963e27dde606de3de39e..12dcfb3e8479dee7f34de6b772b548c19ec78c78 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/background.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/background.js
@@ -785,13 +785,14 @@ window.addEventListener('load', function() {
},
// Run the test case.
function(testCaseName) {
- if (!testcase[testCaseName]) {
- chrome.test.runTests([function() {
- chrome.test.fail(testCaseName + ' is not found.');
- }]);
+ var targetTest = testcase[testCaseName];
+ if (!targetTest) {
+ chrome.test.fail(testCaseName + ' is not found.');
return;
}
- chrome.test.runTests([testcase[testCaseName]]);
+ // Specify the name of test to the test system.
+ targetTest.generatedName = testCaseName;
+ chrome.test.runTests([targetTest]);
}
];
steps.shift()();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698