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

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js

Issue 1648123004: Fix lazy test result printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js
diff --git a/third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js b/third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js
index ba3a14aa673a7f8c310b950c4972efd8a3ca6948..2aa6ecce92f07bd78915da93bb56ae948c3b19a3 100644
--- a/third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js
+++ b/third_party/WebKit/LayoutTests/intersection-observer/helper-functions.js
@@ -2,14 +2,7 @@
// enough to screw with frame offsets that are measured by the test. Delay all that
// jazz until the actual test code is finished.
setPrintTestResultsLazily();
-var delayDescription = description;
-var descriptionString = "";
-var delayIsSuccessfullyParsed = isSuccessfullyParsed;
-var isSuccessfullyParsed = function() {}
-var description = function(msg) { descriptionString = msg }
-
-if (window.testRunner)
- testRunner.waitUntilDone();
+self.jsTestIsAsync = true;
function rectToString(rect) {
return "[" + rect.left + ", " + rect.right + ", " + rect.top + ", " + rect.bottom + "]";
@@ -26,12 +19,3 @@ function entryToString(entry) {
"target=" + entry.target + "\n" +
"time=" + entry.time);
}
-
-function finishTest() {
- if (descriptionString)
- delayDescription(descriptionString);
- delayIsSuccessfullyParsed();
- finishJSTest();
- if (window.testRunner)
- testRunner.notifyDone();
-}

Powered by Google App Engine
This is Rietveld 408576698