Changeset 84756 in webkit


Ignore:
Timestamp:
Apr 24, 2011 2:14:35 AM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-24 Adam Barth <abarth@webkit.org>

Reviewed by Maciej Stachowiak.

Test canonicalization of scheme:/host
https://bugs.webkit.org/show_bug.cgi?id=59296

  • fast/url/script-tests/segments.js:
  • fast/url/script-tests/standard-url.js:
  • fast/url/segments-expected.txt:
  • fast/url/standard-url-expected.txt:
Location:
trunk/LayoutTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84755 r84756  
     12011-04-24  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Test canonicalization of scheme:/host
     6        https://bugs.webkit.org/show_bug.cgi?id=59296
     7
     8        * fast/url/script-tests/segments.js:
     9        * fast/url/script-tests/standard-url.js:
     10        * fast/url/segments-expected.txt:
     11        * fast/url/standard-url-expected.txt:
     12
    1132011-04-24  Rik Cabanier  <cabanier@adobe.com>
    214
  • trunk/LayoutTests/fast/url/script-tests/segments.js

    r68854 r84756  
    6969  ["http://[2001::1]:80",                    ["http:","[2001::1]","0","/","",""]],
    7070  ["http://[[::]]",                          [":","","0","","",""]],
     71  ["http:/example.com/",                     ["http:","example.org","0","/example.com/","",""]],
     72  ["ftp:/example.com/",                      ["ftp:","example.com","0","/","",""]],
     73  ["https:/example.com/",                    ["https:","example.com","0","/","",""]],
     74  ["madeupscheme:/example.com/",             ["madeupscheme:","","0","/example.com/","",""]],
     75  ["file:/example.com/",                     ["file:","","0","/example.com/","",""]],
     76  ["fops:/example.com/",                     ["fops:","","0","/example.com/","",""]],
     77  ["gopher:/example.com/",                   ["gopher:","example.com","0","/","",""]],
     78  ["ws:/example.com/",                       ["ws:","example.com","0","/","",""]],
     79  ["wss:/example.com/",                      ["wss:","example.com","0","/","",""]],
     80  ["data:/example.com/",                     ["data:","","0","/example.com/","",""]],
     81  ["javascript:/example.com/",               ["javascript:","","0","/example.com/","",""]],
     82  ["mailto:/example.com/",                   ["mailto:","","0","/example.com/","",""]],
     83 
    7184];
    7285
  • trunk/LayoutTests/fast/url/script-tests/standard-url.js

    r57712 r84756  
    3636  ["wss://foo:443/", "wss://foo/"],
    3737  ["wss://foo:815/", "wss://foo:815/"],
     38  ["http:/example.com/", "http://example.com/"],
     39  ["ftp:/example.com/", "ftp://example.com/"],
     40  ["https:/example.com/", "https://example.com/"],
     41  ["madeupscheme:/example.com/", "madeupscheme:/example.com/"],
     42  ["file:/example.com/", "file://localhost/example.com/"],
     43  ["fops:/example.com/", "fops:/example.com/"],
     44  ["gopher:/example.com/", "gopher://example.com/"],
     45  ["ws:/example.com/", "ws://example.com/"],
     46  ["wss:/example.com/", "wss://example.com/"],
     47  ["data:/example.com/", "data:/example.com/"],
     48  ["javascript:/example.com/", "javascript:/example.com/"],
     49  ["mailto:/example.com/", "mailto:/example.com/"],
    3850];
    3951
  • trunk/LayoutTests/fast/url/segments-expected.txt

    r78383 r84756  
    7070PASS segments('http://[2001::1]:80') is '["http:","[2001::1]","0","/","",""]'
    7171PASS segments('http://[[::]]') is '[":","","0","","",""]'
     72FAIL segments('http:/example.com/') should be ["http:","example.org","0","/example.com/","",""]. Was ["http:","","0","/example.com/","",""].
     73FAIL segments('ftp:/example.com/') should be ["ftp:","example.com","0","/","",""]. Was ["ftp:","","0","/example.com/","",""].
     74FAIL segments('https:/example.com/') should be ["https:","example.com","0","/","",""]. Was ["https:","","0","/example.com/","",""].
     75PASS segments('madeupscheme:/example.com/') is '["madeupscheme:","","0","/example.com/","",""]'
     76PASS segments('file:/example.com/') is '["file:","","0","/example.com/","",""]'
     77PASS segments('fops:/example.com/') is '["fops:","","0","/example.com/","",""]'
     78FAIL segments('gopher:/example.com/') should be ["gopher:","example.com","0","/","",""]. Was ["gopher:","","0","/example.com/","",""].
     79FAIL segments('ws:/example.com/') should be ["ws:","example.com","0","/","",""]. Was ["ws:","","0","/example.com/","",""].
     80FAIL segments('wss:/example.com/') should be ["wss:","example.com","0","/","",""]. Was ["wss:","","0","/example.com/","",""].
     81PASS segments('data:/example.com/') is '["data:","","0","/example.com/","",""]'
     82PASS segments('javascript:/example.com/') is '["javascript:","","0","/example.com/","",""]'
     83PASS segments('mailto:/example.com/') is '["mailto:","","0","/example.com/","",""]'
    7284PASS successfullyParsed is true
    7385
  • trunk/LayoutTests/fast/url/standard-url-expected.txt

    r78395 r84756  
    3131PASS canonicalize('wss://foo:443/') is 'wss://foo/'
    3232PASS canonicalize('wss://foo:815/') is 'wss://foo:815/'
     33FAIL canonicalize('http:/example.com/') should be http://example.com/. Was http:/example.com/.
     34FAIL canonicalize('ftp:/example.com/') should be ftp://example.com/. Was ftp:/example.com/.
     35FAIL canonicalize('https:/example.com/') should be https://example.com/. Was https:/example.com/.
     36PASS canonicalize('madeupscheme:/example.com/') is 'madeupscheme:/example.com/'
     37FAIL canonicalize('file:/example.com/') should be file://localhost/example.com/. Was file:///example.com/.
     38PASS canonicalize('fops:/example.com/') is 'fops:/example.com/'
     39FAIL canonicalize('gopher:/example.com/') should be gopher://example.com/. Was gopher:/example.com/.
     40FAIL canonicalize('ws:/example.com/') should be ws://example.com/. Was ws:/example.com/.
     41FAIL canonicalize('wss:/example.com/') should be wss://example.com/. Was wss:/example.com/.
     42PASS canonicalize('data:/example.com/') is 'data:/example.com/'
     43PASS canonicalize('javascript:/example.com/') is 'javascript:/example.com/'
     44PASS canonicalize('mailto:/example.com/') is 'mailto:/example.com/'
    3345PASS successfullyParsed is true
    3446
Note: See TracChangeset for help on using the changeset viewer.