Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[js1.8.5] Spidermonkey auto-escapes control chars now

  • Loading branch information...
commit cdf715a5b8222f1d3f7ab1dd4d0125f7312ff913 1 parent 518f1b1
@mattbasta authored
View
1  tests/resources/controlchars/controlchars_utf-8_ok.js
@@ -1 +0,0 @@
-function täst() {}
View
BIN  tests/resources/controlchars/controlchars_utf-8_warn.js
Binary file not shown
View
19 tests/test_controlchars.py
@@ -36,22 +36,3 @@ def test_controlchars_ascii_warn():
errs = _do_test("tests/resources/controlchars/controlchars_ascii_warn.js")
eq_(errs.message_count, 1)
eq_(errs.warnings[0]["id"][2], "syntax_error")
-
-
-def test_controlchars_utf8_ok():
- """Test that multi-byte characters are decoded properly (utf-8)."""
-
- errs = _do_test("tests/resources/controlchars/controlchars_utf-8_ok.js")
- assert not errs.message_count
-
-
-def test_controlchars_utf8_warn():
- """
- Tests that multi-byte characters are decoded properly (utf-8) but remaining
- non-ascii characters raise warnings.
- """
-
- errs = _do_test("tests/resources/controlchars/controlchars_utf-8_warn.js")
- eq_(errs.message_count, 1)
- eq_(errs.warnings[0]["id"][2], "syntax_error")
-
Please sign in to comment.
Something went wrong with that request. Please try again.