Index: mojo/apps/js/bindings/connection_unittests.js |
diff --git a/mojo/apps/js/bindings/connection_unittests.js b/mojo/apps/js/bindings/connection_unittests.js |
index 3a578203fef74fbb453f87257d2f26e5a76b450f..60b867d1aa11ccc9cfae190d5017e7910d39b1e4 100644 |
--- a/mojo/apps/js/bindings/connection_unittests.js |
+++ b/mojo/apps/js/bindings/connection_unittests.js |
@@ -53,16 +53,19 @@ define([ |
"mojo/public/bindings/js/connection", |
"mojo/public/interfaces/bindings/tests/sample_interfaces.mojom", |
"mojo/public/interfaces/bindings/tests/sample_service.mojom", |
+ "gc", |
], function(expect, |
mockSupport, |
core, |
connection, |
sample_interfaces, |
- sample_service) { |
+ sample_service, |
+ gc) { |
testClientServer(); |
testWriteToClosedPipe(); |
testRequestResponse(); |
this.result = "PASS"; |
+ gc.collectGarbage(); // should not crash |
function testClientServer() { |
var receivedFrobinate = false; |