Fix test bustage due to platform line-endings. Bug 1222624
authorJonas Sicking <jonas@sicking.cc>
Fri, 04 Dec 2015 23:10:03 -0800
changeset 309926 2a4502574495d9e2637ffb04491562c6242df851
parent 309925 b8a9e34748f149884e4cfff694ed064d892e8c44
child 309927 e407f668476dd21ff5bee05c85fd5aaa5c3a894c
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1222624
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix test bustage due to platform line-endings. Bug 1222624
dom/xslt/tests/mochitest/test_bug1222624.html
--- a/dom/xslt/tests/mochitest/test_bug1222624.html
+++ b/dom/xslt/tests/mochitest/test_bug1222624.html
@@ -12,17 +12,19 @@ https://bugzilla.mozilla.org/show_bug.cg
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1222624">Mozilla Bug 1222624</a>
 <p id="display"></p>
 <iframe id="frame"></iframe>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 1222624 **/
 
-const transformRes = '<?xml version="1.0" encoding="UTF-8"?>\n<result><external/>doc1!doc2</result>';
+const nl = navigator.platform == 'Win32' ? '\r\n' : '\n';
+
+const transformRes = '<?xml version="1.0" encoding="UTF-8"?>' + nl + '<result><external/>doc1!doc2</result>';
 
 xhr = new XMLHttpRequest();
 xhr.open("GET", "file_bug1222624.xml", false);
 xhr.send();
 var xmlDoc = xhr.responseXML;
 
 xhr.open("GET", "file_bug1222624.xsl", false);
 xhr.send();