WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74933
[Qt][WK2] Add test for application URL schemes.
https://bugs.webkit.org/show_bug.cgi?id=74933
Summary
[Qt][WK2] Add test for application URL schemes.
Zeno Albisser
Reported
2011-12-20 07:54:17 PST
ssia
Attachments
patch for review.
(2.51 KB, patch)
2011-12-20 09:38 PST
,
Zeno Albisser
kenneth
: review+
Details
Formatted Diff
Diff
patch for review. - update to fit the latest QML WebViewExperimental API.
(2.50 KB, patch)
2012-01-05 17:30 PST
,
Zeno Albisser
no flags
Details
Formatted Diff
Diff
patch for review. - add more test cases.
(4.04 KB, patch)
2012-01-09 16:20 PST
,
Zeno Albisser
kenneth
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zeno Albisser
Comment 1
2011-12-20 09:38:09 PST
Created
attachment 120038
[details]
patch for review.
Kenneth Rohde Christiansen
Comment 2
2011-12-21 03:50:56 PST
Comment on
attachment 120038
[details]
patch for review. View in context:
https://bugs.webkit.org/attachment.cgi?id=120038&action=review
Test looks fine.
> Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:13 > + schemeDelegates: [ > + UrlScheme {
Are there other types of scheme delegates than url schemes? just wondering
Zeno Albisser
Comment 3
2011-12-21 06:12:33 PST
Comment on
attachment 120038
[details]
patch for review. View in context:
https://bugs.webkit.org/attachment.cgi?id=120038&action=review
>> Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:13 >> + UrlScheme { > > Are there other types of scheme delegates than url schemes? just wondering
Nope. I already mentioned that in
https://bugs.webkit.org/show_bug.cgi?id=74931
. I think the API contains a bit too much redundancy schemeDelegates [ UrlScheme { scheme: ... } ] Actually may be we should rename "schemeDelegates" to "urlSchemeDelegates". But that would even add more redundancy. :-S It would be nice to get rid of the "UrlScheme" keyword and make it implicit. But i'm not sure that is possible in QML.
Zeno Albisser
Comment 4
2012-01-05 17:30:38 PST
Created
attachment 121376
[details]
patch for review. - update to fit the latest QML WebViewExperimental API.
Zeno Albisser
Comment 5
2012-01-06 02:31:48 PST
Comment on
attachment 121376
[details]
patch for review. - update to fit the latest QML WebViewExperimental API. Clearing flags on attachment: 121376 Committed
r104280
: <
http://trac.webkit.org/changeset/104280
>
Zeno Albisser
Comment 6
2012-01-06 02:31:58 PST
All reviewed patches have been landed. Closing bug.
Rafael Brandao
Comment 7
2012-01-06 03:31:45 PST
I think you should add a new test case to show how the requested url could be handled. In that test case, for example, you could check if you've got "something" requested. Another test could be to have multiple schemes, and see if you've got the right delegate for each urlscheme as you would expect. :-)
Zeno Albisser
Comment 8
2012-01-06 03:41:55 PST
(In reply to
comment #7
)
> I think you should add a new test case to show how the requested url could be handled. In that test case, for example, you could check if you've got "something" requested. > > Another test could be to have multiple schemes, and see if you've got the right delegate for each urlscheme as you would expect. :-)
Sure... i'll add some more stuff soon. :)
Zeno Albisser
Comment 9
2012-01-09 16:20:49 PST
Created
attachment 121751
[details]
patch for review. - add more test cases. as suggested by Rafael Brandao.
Kenneth Rohde Christiansen
Comment 10
2012-01-10 01:23:07 PST
Comment on
attachment 121751
[details]
patch for review. - add more test cases. View in context:
https://bugs.webkit.org/attachment.cgi?id=121751&action=review
> Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:37 > + if ( request.url.toLowerCase() == "scheme3://url1")
why space before request?
Zeno Albisser
Comment 11
2012-01-24 04:29:02 PST
Committed
r105728
: <
http://trac.webkit.org/changeset/105728
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug