Skip to content

Commit

Permalink
test: use valid url for decode test
Browse files Browse the repository at this point in the history
  • Loading branch information
garymathews authored and github-actions[bot] committed Feb 10, 2021
1 parent 631637a commit ca6240d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Resources/ti.ui.webview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,13 @@ describe('Titanium.UI.WebView', function () {
backgroundColor: 'blue'
});
const webview = Ti.UI.createWebView({
url: 'https://test/sub/api?key=TiTeSTKEy%3D%3D&var=1234'
url: 'https://www.google.com/sub/api?key=TiTeSTKEy%3D%3D&var=1234'
});

webview.addEventListener('load', e => {
try {
should(e.source.url).be.a.String();
should(e.source.url).eql('https://test/sub/api?key=TiTeSTKEy%3D%3D&var=1234');
should(e.source.url).eql('https://www.google.com/sub/api?key=TiTeSTKEy%3D%3D&var=1234');
} catch (err) {
return finish(err);
}
Expand All @@ -873,13 +873,13 @@ describe('Titanium.UI.WebView', function () {
backgroundColor: 'blue'
});
const webview = Ti.UI.createWebView({
url: 'https://test/pin%20wheel+.jpg'
url: 'https://www.google.com/pin%20wheel+.jpg'
});

webview.addEventListener('load', e => {
try {
should(e.source.url).be.a.String();
should(e.source.url).eql('https://test/pin%20wheel+.jpg');
should(e.source.url).eql('https://www.google.com/pin%20wheel+.jpg');
} catch (err) {
return finish(err);
}
Expand Down

0 comments on commit ca6240d

Please sign in to comment.