Bug 1285448 Apply windows test hack to all windows versions r?kmag draft
authorAndrew Swan <aswan@mozilla.com>
Thu, 07 Jul 2016 20:41:16 -0700
changeset 385539 78786e2ab5669c278c4124e380329bef33c1a6e3
parent 385455 45682df2d2d45e5a8385fd842579e661a4b60bc5
child 524951 2906f07d980bf3b01fcefa7421a90e9c9a652d8e
push id22526
push useraswan@mozilla.com
push dateFri, 08 Jul 2016 15:52:30 +0000
reviewerskmag
bugs1285448
milestone50.0a1
Bug 1285448 Apply windows test hack to all windows versions r?kmag MozReview-Commit-ID: K6DqaxsN9fn
toolkit/components/extensions/test/mochitest/test_chrome_ext_native_messaging.html
--- a/toolkit/components/extensions/test/mochitest/test_chrome_ext_native_messaging.html
+++ b/toolkit/components/extensions/test/mochitest/test_chrome_ext_native_messaging.html
@@ -123,19 +123,19 @@ while True:
     sys.stdout.write(struct.pack('@I', msglen))
     sys.stdout.write(msg)
 `;
 
 const STDERR_LINES = ["hello stderr", "this should be a separate line"];
 let STDERR_MSG = STDERR_LINES.join("\\n");
 
 // Python apparently line-buffers stderr even with the -u arg on
-// Windows 7.  Dealing with that is more hassle than its worth but
+// Windows.  Dealing with that is more hassle than its worth but
 // on other platforms, we want to keep testing partial lines.
-if (AppConstants.isPlatformAndVersionAtMost("win", "7")) {
+if (AppConstants.platform == "win") {
   STDERR_MSG += "\\n";
 }
 
 const STDERR_BODY = String.raw`
 import sys
 sys.stderr.write("${STDERR_MSG}")
 `;