Bug 1272522 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 385280 5c8096a278ca8513d9276a98fbd7917abe9a2a38
parent 385049 41edfe61af003659417cb21a2060f0bb54fb7a76
child 524902 1237ba7318f991013299ac7e330b9e6547405b15
push id22475
push useraswan@mozilla.com
push dateFri, 08 Jul 2016 03:42:25 +0000
reviewerskmag
bugs1272522
milestone50.0a1
Bug 1272522 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}")
 `;