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

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

Issue 6902019: Revert 82950 - Add a test for checking that refreshing a page does load the same WebUI page.BUG=5... (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « chrome/test/data/webui/settings.js ('k') | content/browser/webui/web_ui_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/test_api.js
===================================================================
--- chrome/test/data/webui/test_api.js (revision 82956)
+++ chrome/test/data/webui/test_api.js (working copy)
@@ -38,12 +38,13 @@
}
function assertEquals(expected, actual, message) {
- if (expected != actual) {
- throw new Error('Test Error. Actual: ' + actual + '\nExpected: ' +
- expected + '\n' + message);
+ if (expected !== actual) {
+ throw new Error('Test Error in ' + testName(currentTest) +
+ '\nActual: ' + actual + '\nExpected: ' + expected +
+ '\n' + message);
}
if (typeof expected != typeof actual) {
- throw new Error('Test Error' +
+ throw new Error('Test Error in ' + testName(currentTest) +
' (type mismatch)\nActual Type: ' + typeof actual +
'\nExpected Type:' + typeof expected + '\n' + message);
}
@@ -58,7 +59,7 @@
console.log('Running test ' + currentTest.name);
currentTest.call();
} catch (e) {
- console.log(
+ console.error(
'Failed: ' + currentTest.name + '\nwith exception: ' + e.message);
fail(e.message);
« no previous file with comments | « chrome/test/data/webui/settings.js ('k') | content/browser/webui/web_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698