Index: third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html b/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html |
index b998ce592ebd0d6f4410ce3b46cdc8e334253333..6120c03200de4fa4365fa15c79337a373ee7f162 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/webfont/webfont-performance-duration.html |
@@ -4,8 +4,7 @@ |
<div id="target">Hello webfont</div> |
<script> |
-if (window.testRunner) |
- testRunner.waitUntilDone(); |
+jsTestIsAsync = true; |
var waitMillisBeforeFetching = 300; |
var entry; |
@@ -22,7 +21,6 @@ new Promise(function(resolve) { |
var name = document.location.origin + '/misc/resources/acid3/font.ttf'; |
entry = window.performance.getEntriesByName(name)[0]; |
shouldBeTrue('entry.startTime >= waitMillisBeforeFetching'); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
+ finishJSTest(); |
}); |
</script> |