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

Unified Diff: LayoutTests/media/w3c-media-utils.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/video-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/w3c-media-utils.js
diff --git a/LayoutTests/media/w3c-media-utils.js b/LayoutTests/media/w3c-media-utils.js
index 076766b6d3193d39bcca1924c6824ede1c833661..5637333cd2eef50671c99a4ec1d0a93afc0a1d94 100644
--- a/LayoutTests/media/w3c-media-utils.js
+++ b/LayoutTests/media/w3c-media-utils.js
@@ -1,4 +1,4 @@
-var console = null;
+var consoleDiv = null;
function getVideoURI(baseFileName)
{
var fileExtension =
@@ -9,15 +9,15 @@ function getVideoURI(baseFileName)
function consoleWrite(text)
{
- if (!console && document.body)
+ if (!consoleDiv && document.body)
{
- console = document.createElement('div');
- document.body.appendChild(console);
+ consoleDiv = document.createElement('div');
+ document.body.appendChild(consoleDiv);
}
var span = document.createElement("span");
span.appendChild(document.createTextNode(text));
span.appendChild(document.createElement('br'));
- console.appendChild(span);
+ consoleDiv.appendChild(span);
}
function waitForEventAndRunStep(eventName, element, func, stepTest)
« no previous file with comments | « LayoutTests/media/video-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698