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:
Marcel Kinard 2014-08-27 17:07:07 -04:00
parent 4f957919c7
commit 832ff5f2e9
2 changed files with 7 additions and 6 deletions

View File

@ -32,6 +32,7 @@
<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-literal" style="display:none">Style updated from literal</h2>
<div>User-Agent: <cite id="u-a"></cite></div>
</body>
<script>
function updateUserAgent() {

View File

@ -295,8 +295,8 @@ exports.defineManualTests = function (contentEl, createActionButton) {
var localhtml = basePath + 'local.html',
localpdf = basePath + 'local.pdf',
injecthtml = basePath + 'inject.html',
injectjs = basePath + 'inject.js',
injectcss = basePath + 'inject.css',
injectjs = 'inject.js',
injectcss = 'inject.css',
videohtml = basePath + 'video.html';
//Local
@ -423,7 +423,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
//Open hidden
createActionButton('Create Hidden', function () {
openHidden('http://google.com', true);
openHidden('https://www.google.com', true);
}, 'openHidden');
createActionButton('Show Hidden', function () {
showHidden();
@ -432,15 +432,15 @@ exports.defineManualTests = function (contentEl, createActionButton) {
closeHidden();
}, 'closeHidden');
createActionButton('google.com Not Hidden', function () {
openHidden('http://google.com', false);
openHidden('https://www.google.com', false);
}, 'openHiddenShow');
//Clearing cache
createActionButton('Clear Browser Cache', function () {
doOpen('http://www.google.com', '_blank', 'clearcache=yes');
doOpen('https://www.google.com', '_blank', 'clearcache=yes');
}, 'openClearCache');
createActionButton('Clear Session Cache', function () {
doOpen('http://www.google.com', '_blank', 'clearsessioncache=yes');
doOpen('https://www.google.com', '_blank', 'clearsessioncache=yes');
}, 'openClearSessionCache');
//Video tag