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

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

Issue 6805003: Add a test for checking that refreshing a page does load the same WebUI page. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
Index: chrome/test/data/webui/test_api.js
===================================================================
--- chrome/test/data/webui/test_api.js (revision 82016)
+++ chrome/test/data/webui/test_api.js (working copy)
@@ -39,12 +39,11 @@
function assertEquals(expected, actual, message) {
if (expected !== actual) {
- throw new Error('Test Error in ' + testName(currentTest) +
- '\nActual: ' + actual + '\nExpected: ' + expected +
- '\n' + message);
+ throw new Error('Test Error. Actual: ' + actual + '\nExpected: ' +
+ expected + '\n' + message);
}
if (typeof expected != typeof actual) {
- throw new Error('Test Error in ' + testName(currentTest) +
+ throw new Error('Test Error' +
' (type mismatch)\nActual Type: ' + typeof actual +
'\nExpected Type:' + typeof expected + '\n' + message);
}
@@ -59,7 +58,7 @@
console.log('Running test ' + currentTest.name);
currentTest.call();
} catch (e) {
- console.error(
+ console.log(
'Failed: ' + currentTest.name + '\nwith exception: ' + e.message);
fail(e.message);

Powered by Google App Engine
This is Rietveld 408576698