Index: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js |
index c50f853369608c4c1214592d9da927dca0bea4f6..bb1450720a564819b6bcdd92a741092ca0d00040 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js |
+++ b/third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js |
@@ -123,3 +123,14 @@ class AddDeviceEventSet { |
return this._idsByName.get(name); |
} |
} |
+ |
+function runGarbageCollection() |
+{ |
+ // Run gc() as a promise. |
+ return new Promise( |
+ function(resolve, reject) { |
+ GCController.collect(); |
+ setTimeout(resolve, 0); |
+ }); |
+ return Promise.resolve(); |
+} |