Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for proposal-json-superset #1544

Merged
merged 3 commits into from
May 8, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions test/language/line-terminators/S7.3_A2.3.js

This file was deleted.

13 changes: 0 additions & 13 deletions test/language/line-terminators/S7.3_A2.4.js

This file was deleted.

16 changes: 16 additions & 0 deletions test/language/literals/string/line-separator-eval.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (C) 2018 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
U+2028 LINE SEPARATOR can appear in string literals (eval code).
info: |
11.8.4 String Literals

All code points may appear literally in a string literal except for the
closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
and U+000A (LINE FEED).
---*/

assert.sameValue(eval("'\u2028'"), "\u2028");
17 changes: 17 additions & 0 deletions test/language/literals/string/line-separator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (C) 2018 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
U+2028 LINE SEPARATOR can appear in string literals.
info: |
11.8.4 String Literals

All code points may appear literally in a string literal except for the
closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
and U+000A (LINE FEED).
---*/

// U+2028 in strings; UTF8(0x2028) = 0xE2 0x80 0xA8
assert.sameValue("
", "\u2028");
16 changes: 16 additions & 0 deletions test/language/literals/string/paragraph-separator-eval.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (C) 2018 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
U+2029 PARAGRAPH SEPARATOR can appear in string literals (eval code).
info: |
11.8.4 String Literals

All code points may appear literally in a string literal except for the
closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
and U+000A (LINE FEED).
---*/

assert.sameValue(eval("'\u2029'"), "\u2029");
17 changes: 17 additions & 0 deletions test/language/literals/string/paragraph-separator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (C) 2018 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-literals-string-literals
description: >
U+2029 PARAGRAPH SEPARATOR can appear in string literals.
info: |
11.8.4 String Literals

All code points may appear literally in a string literal except for the
closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
and U+000A (LINE FEED).
---*/

// U+2029 in strings; UTF8(0x2029) = 0xE2 0x80 0xA9
assert.sameValue("
", "\u2029");