Commit 5f8b001c authored by tsepez@chromium.org's avatar tsepez@chromium.org

Fix segments-from-data-url.js to log PASS instead of just updating expected FAIL lines.

R=cbiesinger@chromium.org
BUG=346132

Review URL: https://codereview.chromium.org/184223007

git-svn-id: svn://svn.chromium.org/blink/trunk@168549 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b08ee5d6
...@@ -34,7 +34,7 @@ cases = [ ...@@ -34,7 +34,7 @@ cases = [
["?", [":","","","","",""]], ["?", [":","","","","",""]],
["/", [":","","","","",""]], ["/", [":","","","","",""]],
[":23", [":","","","","",""]], [":23", [":","","","","",""]],
["/:23", ["data:","","","/:23","",""]], ["/:23", [":","","","","",""]],
["//", [":","","","","",""]], ["//", [":","","","","",""]],
["::", [":","","","","",""]], ["::", [":","","","","",""]],
["::23", [":","","","","",""]], ["::23", [":","","","","",""]],
...@@ -57,7 +57,7 @@ cases = [ ...@@ -57,7 +57,7 @@ cases = [
["http://foo/path;a??e#f#g", ["http:","foo","","/path;a","??e","#f#g"]], ["http://foo/path;a??e#f#g", ["http:","foo","","/path;a","??e","#f#g"]],
["http://foo/abcd?efgh?ijkl", ["http:","foo","","/abcd","?efgh?ijkl",""]], ["http://foo/abcd?efgh?ijkl", ["http:","foo","","/abcd","?efgh?ijkl",""]],
["http://foo/abcd#foo?bar", ["http:","foo","","/abcd","","#foo?bar"]], ["http://foo/abcd#foo?bar", ["http:","foo","","/abcd","","#foo?bar"]],
["[61:24:74]:98", ["data:","","","text/[61:24:74]:98","",""]], ["[61:24:74]:98", [":","","","","",""]],
["http://[61:27]:98", [":","","0","","",""]], ["http://[61:27]:98", [":","","0","","",""]],
["http:[61:27]/:foo", [":","","","","",""]], ["http:[61:27]/:foo", [":","","","","",""]],
["http://[1::2]:3:4", [":","","","","",""]], ["http://[1::2]:3:4", [":","","","","",""]],
......
...@@ -35,7 +35,7 @@ PASS segments('#;?') is '[":","","","","",""]' ...@@ -35,7 +35,7 @@ PASS segments('#;?') is '[":","","","","",""]'
PASS segments('?') is '[":","","","","",""]' PASS segments('?') is '[":","","","","",""]'
PASS segments('/') is '[":","","","","",""]' PASS segments('/') is '[":","","","","",""]'
PASS segments(':23') is '[":","","","","",""]' PASS segments(':23') is '[":","","","","",""]'
PASS segments('/:23') is '["data:","","","/:23","",""]' PASS segments('/:23') is '[":","","","","",""]'
PASS segments('//') is '[":","","","","",""]' PASS segments('//') is '[":","","","","",""]'
PASS segments('::') is '[":","","","","",""]' PASS segments('::') is '[":","","","","",""]'
PASS segments('::23') is '[":","","","","",""]' PASS segments('::23') is '[":","","","","",""]'
...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]' ...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]'
PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]' PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]'
PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]' PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]'
PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]' PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]'
PASS segments('[61:24:74]:98') is '["data:","","","text/[61:24:74]:98","",""]' PASS segments('[61:24:74]:98') is '[":","","","","",""]'
PASS segments('http://[61:27]:98') is '[":","","0","","",""]' PASS segments('http://[61:27]:98') is '[":","","0","","",""]'
PASS segments('http:[61:27]/:foo') is '[":","","","","",""]' PASS segments('http:[61:27]/:foo') is '[":","","","","",""]'
FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""]. FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""].
......
...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]' ...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]'
PASS segments('?') is '[":","","","","",""]' PASS segments('?') is '[":","","","","",""]'
PASS segments('/') is '[":","","","","",""]' PASS segments('/') is '[":","","","","",""]'
PASS segments(':23') is '[":","","","","",""]' PASS segments(':23') is '[":","","","","",""]'
FAIL segments('/:23') should be ["data:","","","/:23","",""]. Was [":","","","","",""]. PASS segments('/:23') is '[":","","","","",""]'
PASS segments('//') is '[":","","","","",""]' PASS segments('//') is '[":","","","","",""]'
PASS segments('::') is '[":","","","","",""]' PASS segments('::') is '[":","","","","",""]'
PASS segments('::23') is '[":","","","","",""]' PASS segments('::23') is '[":","","","","",""]'
...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]' ...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]'
PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]' PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]'
PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]' PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]'
PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]' PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]'
FAIL segments('[61:24:74]:98') should be ["data:","","","text/[61:24:74]:98","",""]. Was [":","","","","",""]. PASS segments('[61:24:74]:98') is '[":","","","","",""]'
PASS segments('http://[61:27]:98') is '[":","","0","","",""]' PASS segments('http://[61:27]:98') is '[":","","0","","",""]'
PASS segments('http:[61:27]/:foo') is '[":","","","","",""]' PASS segments('http:[61:27]/:foo') is '[":","","","","",""]'
FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""]. FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""].
......
...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]' ...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]'
PASS segments('?') is '[":","","","","",""]' PASS segments('?') is '[":","","","","",""]'
PASS segments('/') is '[":","","","","",""]' PASS segments('/') is '[":","","","","",""]'
PASS segments(':23') is '[":","","","","",""]' PASS segments(':23') is '[":","","","","",""]'
FAIL segments('/:23') should be ["data:","","","/:23","",""]. Was [":","","","","",""]. PASS segments('/:23') is '[":","","","","",""]'
PASS segments('//') is '[":","","","","",""]' PASS segments('//') is '[":","","","","",""]'
PASS segments('::') is '[":","","","","",""]' PASS segments('::') is '[":","","","","",""]'
PASS segments('::23') is '[":","","","","",""]' PASS segments('::23') is '[":","","","","",""]'
...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]' ...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]'
PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]' PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]'
PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]' PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]'
PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]' PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]'
FAIL segments('[61:24:74]:98') should be ["data:","","","text/[61:24:74]:98","",""]. Was [":","","","","",""]. PASS segments('[61:24:74]:98') is '[":","","","","",""]'
PASS segments('http://[61:27]:98') is '[":","","0","","",""]' PASS segments('http://[61:27]:98') is '[":","","0","","",""]'
PASS segments('http:[61:27]/:foo') is '[":","","","","",""]' PASS segments('http:[61:27]/:foo') is '[":","","","","",""]'
FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""]. FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""].
......
...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]' ...@@ -35,7 +35,7 @@ PASS segments('#;?') is '["data:","","","text/plain,baseURL","","#;?"]'
PASS segments('?') is '[":","","","","",""]' PASS segments('?') is '[":","","","","",""]'
PASS segments('/') is '[":","","","","",""]' PASS segments('/') is '[":","","","","",""]'
PASS segments(':23') is '[":","","","","",""]' PASS segments(':23') is '[":","","","","",""]'
FAIL segments('/:23') should be ["data:","","","/:23","",""]. Was [":","","","","",""]. PASS segments('/:23') is '[":","","","","",""]'
PASS segments('//') is '[":","","","","",""]' PASS segments('//') is '[":","","","","",""]'
PASS segments('::') is '[":","","","","",""]' PASS segments('::') is '[":","","","","",""]'
PASS segments('::23') is '[":","","","","",""]' PASS segments('::23') is '[":","","","","",""]'
...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]' ...@@ -58,7 +58,7 @@ PASS segments('//foo/bar') is '[":","","","","",""]'
PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]' PASS segments('http://foo/path;a??e#f#g') is '["http:","foo","","/path;a","??e","#f#g"]'
PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]' PASS segments('http://foo/abcd?efgh?ijkl') is '["http:","foo","","/abcd","?efgh?ijkl",""]'
PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]' PASS segments('http://foo/abcd#foo?bar') is '["http:","foo","","/abcd","","#foo?bar"]'
FAIL segments('[61:24:74]:98') should be ["data:","","","text/[61:24:74]:98","",""]. Was [":","","","","",""]. PASS segments('[61:24:74]:98') is '[":","","","","",""]'
PASS segments('http://[61:27]:98') is '[":","","0","","",""]' PASS segments('http://[61:27]:98') is '[":","","0","","",""]'
PASS segments('http:[61:27]/:foo') is '[":","","","","",""]' PASS segments('http:[61:27]/:foo') is '[":","","","","",""]'
FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""]. FAIL segments('http://[1::2]:3:4') should be [":","","","","",""]. Was [":","","0","","",""].
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment