mirror of
https://github.com/shuto-cn/cordova-plugin-inappbrowser.git
synced 2025-02-24 02:52:57 +08:00
CB-7133 more fixup of tests on Android
- fix the paths to the injected resources - update the urls to Google home page to use https to avoid redirects - get the user agent to display on the inject.html page
This commit is contained in:
parent
4f957919c7
commit
832ff5f2e9
@ -32,6 +32,7 @@
|
|||||||
<h1 id="header">InAppBrowser - Script / Style Injection Test</h1>
|
<h1 id="header">InAppBrowser - Script / Style Injection Test</h1>
|
||||||
<h2 id="style-update-file" style="display:none">Style updated from file</h2>
|
<h2 id="style-update-file" style="display:none">Style updated from file</h2>
|
||||||
<h2 id="style-update-literal" style="display:none">Style updated from literal</h2>
|
<h2 id="style-update-literal" style="display:none">Style updated from literal</h2>
|
||||||
|
<div>User-Agent: <cite id="u-a"></cite></div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
function updateUserAgent() {
|
function updateUserAgent() {
|
||||||
|
@ -295,8 +295,8 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
var localhtml = basePath + 'local.html',
|
var localhtml = basePath + 'local.html',
|
||||||
localpdf = basePath + 'local.pdf',
|
localpdf = basePath + 'local.pdf',
|
||||||
injecthtml = basePath + 'inject.html',
|
injecthtml = basePath + 'inject.html',
|
||||||
injectjs = basePath + 'inject.js',
|
injectjs = 'inject.js',
|
||||||
injectcss = basePath + 'inject.css',
|
injectcss = 'inject.css',
|
||||||
videohtml = basePath + 'video.html';
|
videohtml = basePath + 'video.html';
|
||||||
|
|
||||||
//Local
|
//Local
|
||||||
@ -423,7 +423,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
|
|
||||||
//Open hidden
|
//Open hidden
|
||||||
createActionButton('Create Hidden', function () {
|
createActionButton('Create Hidden', function () {
|
||||||
openHidden('http://google.com', true);
|
openHidden('https://www.google.com', true);
|
||||||
}, 'openHidden');
|
}, 'openHidden');
|
||||||
createActionButton('Show Hidden', function () {
|
createActionButton('Show Hidden', function () {
|
||||||
showHidden();
|
showHidden();
|
||||||
@ -432,15 +432,15 @@ exports.defineManualTests = function (contentEl, createActionButton) {
|
|||||||
closeHidden();
|
closeHidden();
|
||||||
}, 'closeHidden');
|
}, 'closeHidden');
|
||||||
createActionButton('google.com Not Hidden', function () {
|
createActionButton('google.com Not Hidden', function () {
|
||||||
openHidden('http://google.com', false);
|
openHidden('https://www.google.com', false);
|
||||||
}, 'openHiddenShow');
|
}, 'openHiddenShow');
|
||||||
|
|
||||||
//Clearing cache
|
//Clearing cache
|
||||||
createActionButton('Clear Browser Cache', function () {
|
createActionButton('Clear Browser Cache', function () {
|
||||||
doOpen('http://www.google.com', '_blank', 'clearcache=yes');
|
doOpen('https://www.google.com', '_blank', 'clearcache=yes');
|
||||||
}, 'openClearCache');
|
}, 'openClearCache');
|
||||||
createActionButton('Clear Session Cache', function () {
|
createActionButton('Clear Session Cache', function () {
|
||||||
doOpen('http://www.google.com', '_blank', 'clearsessioncache=yes');
|
doOpen('https://www.google.com', '_blank', 'clearsessioncache=yes');
|
||||||
}, 'openClearSessionCache');
|
}, 'openClearSessionCache');
|
||||||
|
|
||||||
//Video tag
|
//Video tag
|
||||||
|
Loading…
Reference in New Issue
Block a user