From 4f1f41f338ce0899e48605c82375a72883f4eb7c Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 28 Mar 2016 14:13:16 -0700 Subject: Added test for util.printx() and make it match spec. R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1837543002 --- .../resources/javascript/util_printx_expected.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testing/resources/javascript/util_printx_expected.txt (limited to 'testing/resources/javascript/util_printx_expected.txt') diff --git a/testing/resources/javascript/util_printx_expected.txt b/testing/resources/javascript/util_printx_expected.txt new file mode 100644 index 0000000000..124767d5fd --- /dev/null +++ b/testing/resources/javascript/util_printx_expected.txt @@ -0,0 +1,35 @@ +Alert: ('', '') => '' +Alert: ('', '123') => '' +Alert: ('??', '') => '' +Alert: ('??', 'f2') => 'f2' +Alert: ('??', 'f27') => 'f2' +Alert: ('XXX', '') => '' +Alert: ('XXX', '1afp3.') => '1af' +Alert: ('XXX', '-1Afp3.d33F$') => '1Af' +Alert: ('AAA', '') => '' +Alert: ('AAA', '-1Afp3.') => 'Afp' +Alert: ('AAA', '-1Afp3.d33F$') => 'Afp' +Alert: ('999', '') => '' +Alert: ('999', '-1Afp3.') => '13' +Alert: ('999', '-1Afp3.d33F$') => '133' +Alert: ('9*9', '') => '' +Alert: ('9*9', '-1Afp3.') => '1Afp3.' +Alert: ('[*]X', '-1Afp3.') => '[-1Afp3.]' +Alert: ('<*', '-1Afp3.d33F$') => '-1afp3.d33f$' +Alert: ('>*', '-1Afp3.d33F$') => '-1AFP3.D33F$' +Alert: ('<[AAAAAAAAAAA]', '-1Afp3.d33F$') => '[afpdf]' +Alert: ('>[AAAAAAAAAAA]', '-1Afp3.d33F$') => '[AFPDF]' +Alert: ('<[XXXXXXXXXXX]', '-1Afp3.d33F$') => '[1afp3d33f]' +Alert: ('>[XXXXXXXXXXX]', '-1Afp3.d33F$') => '[1AFP3D33F]' +Alert: ('<[XXXXXXXXXXX]', '-1Afp3.d33F$') => '[1afp3d33f]' +Alert: ('>[???????????]', '-1Afp3.d33F$') => '[-1AFP3.D33F]' +Alert: ('<[???????????]', '-1Afp3.d33F$') => '[-1afp3.d33f]' +Alert: ('\>[\**]', '-1Afp3.d33F$') => '>[*-1Afp3.d33F$]' +Alert: ('\>[\\**]', '-1Afp3.d33F$') => '>[\-1Afp3.d33F$]' +Alert: ('=*', '-1Afp3.d33F$') => '-1Afp3.d33F$' +Alert: (' '-1afp3.d33F$' +Alert: ('>??????=*', '-1Afp3.d33F$') => '-1AFP3.d33F$' +Alert: ('>??????<*', '-1Afp3.d33F$') => '-1AFP3.d33f$' +Alert: ('clams', '-1Afp3.d33F$') => 'clams' +Alert: ('cl9ms', '-1Afp3.d33F$') => 'cl1ms' +Alert: ('cl\9ms', '-1Afp3.d33F$') => 'cl9ms' -- cgit v1.2.3