From 90d87793cf55f3c4e57e9db6c8de692ebef41e29 Mon Sep 17 00:00:00 2001 From: tsepez Date: Tue, 29 Mar 2016 09:21:54 -0700 Subject: Add test for util.byteToChar() and fix error msg. Review URL: https://codereview.chromium.org/1838543002 --- testing/resources/javascript/util_bytetochar_expected.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testing/resources/javascript/util_bytetochar_expected.txt (limited to 'testing/resources/javascript/util_bytetochar_expected.txt') diff --git a/testing/resources/javascript/util_bytetochar_expected.txt b/testing/resources/javascript/util_bytetochar_expected.txt new file mode 100644 index 0000000000..df15ee7226 --- /dev/null +++ b/testing/resources/javascript/util_bytetochar_expected.txt @@ -0,0 +1,9 @@ +Alert: 0 => +Alert: 65 => 65 +Alert: 127 => 127 +Alert: 128 => 128 +Alert: 255 => 255 +Alert: 256: Caught error: util.byteToChar: Incorrect parameter value. +Alert: 40000000: Caught error: util.byteToChar: Incorrect parameter value. +Alert: -1: Caught error: util.byteToChar: Incorrect parameter value. +Alert: Caught expected error: util.byteToChar: Incorrect number of parameters passed to function. -- cgit v1.2.3