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

Unified Diff: third_party/WebKit/LayoutTests/battery-status/multiple-promises.html

Issue 2919233002: [Not for review] Tests for GC bug related to ScriptPromiseProperty.
Patch Set: Add tests for GC bug of BeforeInstallPromptEvent and PresentationRequest Created 3 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
Index: third_party/WebKit/LayoutTests/battery-status/multiple-promises.html
diff --git a/third_party/WebKit/LayoutTests/battery-status/multiple-promises.html b/third_party/WebKit/LayoutTests/battery-status/multiple-promises.html
index c1770059b8142ff8f78f5585cd1096f1ab9195d4..b820c982016509292dc103f3180394af11c235cc 100644
--- a/third_party/WebKit/LayoutTests/battery-status/multiple-promises.html
+++ b/third_party/WebKit/LayoutTests/battery-status/multiple-promises.html
@@ -35,7 +35,7 @@ mockBatteryMonitorReady.then(() => {
promise1Count++;
finishIfReady();
}, batteryStatusFailure);
-
+ gc();
promise2 = navigator.getBattery();
promise2.then(
function(battery) {
@@ -44,6 +44,7 @@ mockBatteryMonitorReady.then(() => {
promise2Count++;
finishIfReady();
}, batteryStatusFailure);
+ gc();
shouldBeTrue('promise1 === promise2');
setAndFireMockBatteryInfo(false, 10, 20, 0.5);

Powered by Google App Engine
This is Rietveld 408576698