Title: [236597] trunk/JSTests
- Revision
- 236597
- Author
- [email protected]
- Date
- 2018-09-28 08:31:47 -0700 (Fri, 28 Sep 2018)
Log Message
JSC test stress/jsc-read.js doesn't support CRLF
https://bugs.webkit.org/show_bug.cgi?id=190063
Reviewed by Yusuke Suzuki.
In order to run this test via Windows command prompt, we can't assume that the final newline will be LF.
* stress/jsc-read.js:
(test):
Modified Paths
Diff
Modified: trunk/JSTests/ChangeLog (236596 => 236597)
--- trunk/JSTests/ChangeLog 2018-09-28 08:04:10 UTC (rev 236596)
+++ trunk/JSTests/ChangeLog 2018-09-28 15:31:47 UTC (rev 236597)
@@ -1,3 +1,15 @@
+2018-09-28 Ross Kirsling <[email protected]>
+
+ JSC test stress/jsc-read.js doesn't support CRLF
+ https://bugs.webkit.org/show_bug.cgi?id=190063
+
+ Reviewed by Yusuke Suzuki.
+
+ In order to run this test via Windows command prompt, we can't assume that the final newline will be LF.
+
+ * stress/jsc-read.js:
+ (test):
+
2018-09-27 Saam barati <[email protected]>
Verify the contents of AssemblerBuffer on arm64e
Modified: trunk/JSTests/stress/jsc-read.js (236596 => 236597)
--- trunk/JSTests/stress/jsc-read.js 2018-09-28 08:04:10 UTC (rev 236596)
+++ trunk/JSTests/stress/jsc-read.js 2018-09-28 15:31:47 UTC (rev 236597)
@@ -3,7 +3,9 @@
const in_file = 'jsc-read.js';
const check = content_read => {
- let expect = '(' + test.toString() + ')();\n';
+ let testContent = test.toString();
+ let lineEnding = testContent.match(/\r?\n/)[0];
+ let expect = `(${testContent})();${lineEnding}`;
if (content_read !== expect)
throw Error('Expected to read this file as-is, instead read:\n==========\n' + content_read + '\n==========');
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes