From 1296da313cb3d942e1613472f94cbc242c954977 Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Tue, 6 Sep 2011 13:59:14 -0400 Subject: [PATCH] Fixed browser shutdown bug for Macs The unnecessary spaces in the URL query were causing `tellAppToQuit()` to fail to detect the query `path`, so the browser was being killed via timeout instead of intended script. --- test/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/driver.js b/test/driver.js index cfa9dff75..265de0852 100644 --- a/test/driver.js +++ b/test/driver.js @@ -157,7 +157,7 @@ function snapshotCurrentPage(page, task, failure) { function sendQuitRequest() { var r = new XMLHttpRequest(); - r.open('POST', '/tellMeToQuit?path = ' + escape(appPath), false); + r.open('POST', '/tellMeToQuit?path=' + escape(appPath), false); r.send(''); }