From 0ce9ae070c2a6578b6233508be2a3df35dcbd425 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 4 Aug 2015 12:07:49 +0200 Subject: [PATCH] Add some more test cases for TestJavascriptEscape. --- tests/browser/test_webelem.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/browser/test_webelem.py b/tests/browser/test_webelem.py index 5051aadfd..d88bbc6aa 100644 --- a/tests/browser/test_webelem.py +++ b/tests/browser/test_webelem.py @@ -513,6 +513,11 @@ class TestJavascriptEscape: "foo'bar": r"foo\'bar", 'foo"bar': r'foo\"bar', 'one\\two\rthree\nfour\'five"six': r'one\\two\rthree\nfour\'five\"six', + '\x00': r'\x00', + 'hellö': 'hellö', + '☃': '☃', + '\x80Ā': '\x80Ā', + '𐀀\x00𐀀\x00': r'𐀀\x00𐀀\x00', } @pytest.mark.parametrize('before, after', TESTS.items())