This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit enhances the automated test suite available for testing
webworks whitelisting. It includes changes to the domains used by the test-app for the whitelisting tests and updates the config.xml to have it pass. It also includes several addional apps to test other aspects of whitelisting that could not be done from a single app. Additionally it includes some unit test additions to make sure we have complete coverage. Reviewed By: Jeffrey Heifetz <jheifetz@rim.com> Tested By: Igor Shneur <ishneur@rim.com>
- Loading branch information
Showing
32 changed files
with
11,652 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ ext/blackberry.example.test | |
lib/pps/ppsUtils.js | ||
lib/jnext.js | ||
test/test-app | ||
test/functional/Apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<widget xmlns=" http://www.w3.org/ns/widgets" | ||
xmlns:rim="http://www.blackberry.com/ns/widgets" | ||
version="1.0.0" | ||
id="ExternalStartup"> | ||
|
||
<name>External Domain Test</name> | ||
|
||
<description>Tests cross domain requests with a external access uri domain</description> | ||
|
||
<content src="http://smoketest-vmyyz.labyyz.testnet.rim.net:8080/external.html"/> | ||
|
||
<author rim:copyright="Copyright 1998-2011 My Corp" email="hello.bob@blah.com" href="http://www.blah.com">Research In Motion Ltd.</author> | ||
|
||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/burger.png?*" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/favicon.ico" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/general_whitelisted.js?*" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/index.html" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/webapi_whitelisted.js?*" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/css" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/js" /> | ||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/spec" /> | ||
|
||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/js/helpers.js"> | ||
<feature id="blackberry.app" /> | ||
<feature id="blackberry.io" /> | ||
</access> | ||
|
||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/a/webworks.html"> | ||
<feature id="blackberry.app" /> | ||
</access> | ||
|
||
<access uri="http://smoketest-vmyyz.labyyz.testnet.rim.net/external.html"> | ||
<feature id="blackberry.app" /> | ||
<feature id="blackberry.io" /> | ||
</access> | ||
|
||
<feature id="blackberry.app" /> | ||
|
||
<access uri="file:///accounts/1000/shared/documents/textData.txt" /> | ||
|
||
<license href="http://www.apache.org/licenses/LICENSE-2.0"> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
#you may not use this file except in compliance with the License. | ||
#You may obtain a copy of the License at | ||
# | ||
#http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
#Unless required by applicable law or agreed to in writing, software | ||
#distributed under the License is distributed on an "AS IS" BASIS, | ||
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
#See the License for the specific language governing permissions and limitations under the License. | ||
</license> | ||
|
||
<rim:permissions> | ||
<rim:permit>access_shared</rim:permit> | ||
</rim:permissions> | ||
</widget> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>Local External Startup Page</title> | ||
|
||
<script type="text/javascript" src="local:///chrome/webworks.js"></script> | ||
<script type="text/javascript"> | ||
function postBlackberryId(e) { | ||
e.source.postMessage(blackberry.app.id, event.origin); | ||
} | ||
|
||
document.addEventListener('webworksready', function () { | ||
// Post to parent to indicate we are ready | ||
window.addEventListener('message', postBlackberryId, false); | ||
parent.postMessage('wwready', "*"); | ||
}); | ||
</script> | ||
</head> | ||
</html> |
Oops, something went wrong.