html5-full-render.html fails due to a log
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 22:25:10 +0000 (22:25 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 22:25:10 +0000 (22:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=77046

Reviewed by Adam Barth.

Replace the call to log() in html5-full-render.html by a call to newly added logInfo(),
which doesn't print anything inside DRT.

* Parser/html5-full-render.html:
* resources/runner.js:
(logInfo):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105926 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/Parser/html5-full-render.html
PerformanceTests/resources/runner.js

index ad5bc19..99411a3 100644 (file)
@@ -1,3 +1,17 @@
+2012-01-25  Ryosuke Niwa  <rniwa@webkit.org>
+
+        html5-full-render.html fails due to a log
+        https://bugs.webkit.org/show_bug.cgi?id=77046
+
+        Reviewed by Adam Barth.
+
+        Replace the call to log() in html5-full-render.html by a call to newly added logInfo(),
+        which doesn't print anything inside DRT.
+
+        * Parser/html5-full-render.html:
+        * resources/runner.js:
+        (logInfo):
+
 2012-01-19  Adam Barth  <abarth@webkit.org>
 
         PerformanceTests's runner.js shouldn't be Parser-specific
index c59bcf3..bda2fe6 100644 (file)
@@ -18,7 +18,7 @@ for (var chunkIndex = 0; chunkIndex < chunkCount; chunkIndex++) {
     chunks.push(chunk);
 }
 
-log("Testing " + spec.length + " byte document in " + chunkCount + " " + chunkSize + " byte chunks.");
+logInfo("Testing " + spec.length + " byte document in " + chunkCount + " " + chunkSize + " byte chunks.");
 
 function loadChunkedSpecIntoIframe(iframe) {
     // Note: We've inlined the stylesheets in html5.html.  Before we did that, it seemed to be
index b043589..7d4871e 100644 (file)
@@ -3,6 +3,11 @@ function log(text) {
     window.scrollTo(0, document.body.height);
 }
 
+function logInfo(text) {
+    if (!window.layoutTestController)
+        log(text);
+}
+
 function loadFile(path) {
     var xhr = new XMLHttpRequest();
     xhr.open("GET", path, false);