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

Unified Diff: LayoutTests/media/video-test.js

Issue 1203693002: Unhide 'window.console' by renaming console variable in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed nits Created 5 years, 6 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 | « LayoutTests/media/encrypted-media/encrypted-media-utils.js ('k') | LayoutTests/media/w3c-media-utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-test.js
diff --git a/LayoutTests/media/video-test.js b/LayoutTests/media/video-test.js
index e558c1db9a90094ddbfc71a27856c090e750edfb..5391c462874a61a73564e84ea3c185d60977a0ce 100644
--- a/LayoutTests/media/video-test.js
+++ b/LayoutTests/media/video-test.js
@@ -1,7 +1,7 @@
var video = null;
var mediaElement = document; // If not set, an event from any element will trigger a waitForEvent() callback.
-var console = null;
+var consoleDiv = null;
var printFullTestDetails = true; // This is optionaly switched of by test whose tested values can differ. (see disableFullTestDetailsPrinting())
var Failed = false;
@@ -33,11 +33,11 @@ function enableFullTestDetailsPrinting()
function logConsole()
{
- if (!console && document.body) {
- console = document.createElement('div');
- document.body.appendChild(console);
+ if (!consoleDiv && document.body) {
+ consoleDiv = document.createElement('div');
+ document.body.appendChild(consoleDiv);
}
- return console;
+ return consoleDiv;
}
function findMediaElement()
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-utils.js ('k') | LayoutTests/media/w3c-media-utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698