~osomon/webbrowser-app/encodeURIComponent

« back to all changes in this revision

Viewing changes to tests/unittests/qml/tst_AddressBar.qml

  • Committer: Olivier Tilloy
  • Date: 2014-06-06 16:40:54 UTC
  • Revision ID: olivier.tilloy@canonical.com-20140606164054-3qiaztcoo1k13ipz
Use encodeURIComponent() to encode search queries entered in the address bar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        verify(addressBar.requestedUrl.toString().indexOf("q=%22kung+fu%22") > 0)
104
104
        addressBar.text = "surfin' usa"
105
105
        addressBar.validate()
106
 
        verify(addressBar.requestedUrl.toString().indexOf("q=surfin%27+usa") > 0)
 
106
        verify(addressBar.requestedUrl.toString().indexOf("q=surfin'+usa") > 0)
107
107
        addressBar.text = "to be or not to be?"
108
108
        addressBar.validate()
109
109
        verify(addressBar.requestedUrl.toString().indexOf("q=to+be+or+not+to+be%3F") > 0)
 
110
        addressBar.text = "aléatoire"
 
111
        addressBar.validate()
 
112
        verify(addressBar.requestedUrl.toString().indexOf("q=aléatoire") > 0)
110
113
    }
111
114
 
112
115
    function test_url_uppercase_rewrite() {