Commit 60fa100f authored by dominicc@chromium.org's avatar dominicc@chromium.org

Allow zero values as results from the runFunction.

https://bugs.webkit.org/show_bug.cgi?id=102500

Reviewed by Kentaro Hara.

DOM/DOMWalk.js fails on the Chromium Win perf bot because one or
more parts of the test usually return zero at some point.

* resources/runner.js: Accept merely non-negative results.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139728 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f88700cb
2013-01-15 Dominic Cooney <dominicc@chromium.org>
Allow zero values as results from the runFunction.
https://bugs.webkit.org/show_bug.cgi?id=102500
Reviewed by Kentaro Hara.
DOM/DOMWalk.js fails on the Chromium Win perf bot because one or
more parts of the test usually return zero at some point.
* resources/runner.js: Accept merely non-negative results.
2012-12-28 Yury Semikhatsky <yurys@chromium.org>
Web Inspector: rename distanceToWindow to distance
......
......@@ -257,8 +257,8 @@ if (window.testRunner) {
var end = PerfTestRunner.now();
if (returnValue - 0 === returnValue) {
if (returnValue <= 0)
PerfTestRunner.log("runFunction returned a non-positive value: " + returnValue);
if (returnValue < 0)
PerfTestRunner.log("runFunction returned a negative value: " + returnValue);
return returnValue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment