[Seaside-dev] WAUrl gap analysis

Philippe Marschall philippe.marschall at gmail.com
Mon Apr 21 20:47:54 UTC 2014


Hi

I finally found time to read [1]. It looks to me as if these are the
tests that we should pass but currently fail:

"serialization"
    url := WAUrl new.
    url host: 'example.com'.
    url addToPath: 'blue+light blue'.
    url queryFields at: 'blue+light blue' put: nil.
    self assert: url greaseString =
'http://example.com/blue+light%20blue?blue%2Blight+blue'

"parsing"
    url := (WAUrl absolute:
'http://example.com/blue+light%20blue?blue%2Blight+blue')
        decodedWith: GRNullCodec new.
    self assert: url path first = 'blue+light blue'.
    self assert: (url queryFields includesKey: 'blue+light blue').

    url := (WAUrl absolute: 'http://example.com/blue%2Fred%3Fand+green')
        decodedWith: GRNullCodec new.
    self assert: url path first = 'blue/red?and+green'

 [1] http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding

Cheers
Philippe


More information about the seaside-dev mailing list