Joe Bowser
99d5b4d982
CB-13622: Testing commit
2017-11-30 10:56:28 -08:00
Joe Bowser
d73108cc13
CB-13289: Fix test to work with new Google Android Gradle DSL
2017-10-25 11:38:07 -07:00
filmaj
03144eb160
Add a node and npm package.json script for running java unit tests. Include them in the top-level npm test
script. Run java unit tests in travis. Small refactor in gradlebuilder to support building gradle wrapper more easily. Don't explicitly build gradlew on appveyor CI as now npm test
will do it for you.
2017-09-14 09:57:37 -07:00
filmaj
90053eb9df
CB-12950: lots of tweaks for end-to-end test runs, especially on CI:
...
- rename npm tasks to reflect what they do (npm run unit-tests, npm run e2e-tests). main `npm test` runs linter, unit tests and e2e tests now.
- locked jasmine down to ~2.6.0.
- consolidate gitignores.
- updated travis to run `npm test`. add android sdk installation to appveyor ci run.align android dpendencies across travis and appveyor. have appveyor install gradle. force gradle to version 3.4.1 in appveyor, as that seems to be the only version choco has. explicitly invoke sdkmanager to move license accepting process along.
2017-06-27 15:59:16 -05:00
filmaj
0cc3df3747
CB-12859: document how to run the native tests. add a README to the test/ project.
2017-06-06 14:37:57 -05:00
Steve Gill
312efc3878
CB-12609: added missing license headers
2017-03-28 15:03:47 -07:00
Joe Bowser
301faebfcc
CB-12614: Adding headers to tests
2017-03-28 14:27:57 -07:00
Josh Jackson
19220de388
testMultipartPopAndEncodeAsJs under newer test system
...
This closes #358
2017-03-22 10:54:48 -07:00
Josh Jackson
52878d6c5b
MultipartMessageTest
2017-03-22 10:54:42 -07:00
Joe Bowser
4919a2d2a8
Bumping up the test gradle versions
2017-03-22 10:53:58 -07:00
Joe Bowser
3bbc7fb328
CB-12465: Writing new JUnit Test Instrumentation to replace tests and retire problmatic tests
...
This closes #363
2017-02-27 09:28:02 -08:00
Joe Bowser
e628026cf0
Fix for broken testUrl test
2016-10-20 12:47:33 -07:00
Joe Bowser
3a512c300e
Last minute change of test targets
2016-10-20 12:25:47 -07:00
Joe Bowser
efa23bd39b
Updating the gradle build for test to use the latest
2016-10-20 11:25:06 -07:00
akilawickey
d54a42f0f0
fixed CB-11078 Empty string for BackgroundColor preference crashes application
...
This closes #316
2016-08-02 22:38:58 -07:00
Joe Bowser
ad163ce244
Updaing the gradle for the tests to the latest
2016-07-11 14:26:36 -07:00
Tony Homer
d125ece9e9
CB-10096: Upgrade test project to Gradle Plugin 2.1.0
...
This closes #306
2016-05-25 14:49:13 -07:00
Tony Homer
ecb99c963d
CB-11292 fix broken MessageChannel after plugins are recreated
...
This closes #307
2016-05-25 14:49:13 -07:00
Joe Bowser
bcb10ba6da
Modified build.gradle so that the tests run again
2016-04-04 14:14:57 -07:00
Tony Homer
2ac191fbb8
fix HtmlNotFoundTest so that it passes when file not found is handled correctly
...
This Closes #256
2016-02-01 16:11:17 -05:00
Simon MacDonald
6d334c05e9
Update min SDK version to 14
2015-07-07 14:29:45 -07:00
Joe Bowser
aba0a8421b
Adding tests to confirm that preferences aren't changed by Intents
2015-05-15 14:13:18 -07:00
Joe Bowser
b5a58e6ca0
updating existing test code
2015-05-15 14:13:18 -07:00
Andrew Grieve
754911f346
Fix CordovaPluginTest on KitKat (start-up events seem to change)
2015-05-06 09:59:22 -04:00
Andrew Grieve
0f73884c8d
CB-8827 Call onResume for plugins on start-up
...
As a result, simplifies CordovaActivity by removing the now unused "activityState" field
2015-04-08 21:06:23 -04:00
Andrew Grieve
2e9cbdcb0d
Remove unused CordovaWebViewImpl parameter, and make pluginManager private
...
It was public by accident - with the final design leaving it public does
not help with backwards-compatibility.
2015-04-08 21:01:50 -04:00
Tony Homer
a652d892ca
CB-8684 Add onStart/onStop hooks for plugins ( close #173 )
2015-04-08 20:33:31 -04:00
Andrew Grieve
f2d7c49acf
Fix manual tests not finding activity plugin
...
Was broken by recent refactor: 5b87380749
2015-04-07 13:30:26 -04:00
Andrew Grieve
a397a23a9c
Update Android Studio test instructions
2015-04-07 10:12:20 -04:00
Andrew Grieve
9f7e179288
Update test/README.md to say they are no longer in disrepair, and that robotium isn't used.
2015-04-07 09:52:12 -04:00
Andrew Grieve
8d5cb00bec
CB-8702 Add API for plugins to override shouldInterceptRequest
with a stream
2015-03-18 11:02:27 -04:00
Andrew Grieve
2103da7b9d
CB-8693 Delete framework/res
and framework/assets
...
They were being merged into apps unwantingly.
2015-03-17 11:56:02 -04:00
Joe Bowser
5b87380749
Updating use case to use ConfigXmlParser() instead of deprecated config class
2015-03-11 15:08:06 -07:00
Andrew Grieve
087ec11e6a
CB-8510 Create a new abstraction for sharing common logic of WebView engines
...
Having CordovaWebViewImpl separate from CordovaWebViewEngine is helpful because
now each webview doesn't have to re-implement non-webview-specific
featrues. e.g.:
1. load timeout
2. keyboard events
3. showCustomView
4. lifecycle events
Moved AndroidWebView into its own package to ensure that it doesn't use
any package-private symbols (since plugins cannot use them).
2015-02-19 12:21:30 -05:00
Andrew Grieve
00c0a84e4e
Remove unused imports from MainTestActivity
2015-02-19 11:33:32 -05:00
Andrew Grieve
be229b1ac6
Make ErrorUrlTest INVALID_URL point to an existing file to make it test the right thing
2015-02-19 11:32:54 -05:00
Ian Clelland
7e0bfbbad2
Merge branch 'unplug-whitelist'
2015-02-18 09:37:00 -05:00
Andrew Grieve
9baa27508a
Add back a test that url (and errorUrl) are not settable via Intent extras
2015-02-12 15:03:44 -05:00
Andrew Grieve
c3267def97
Revert "Reverting the refactor. I'd rather have 4 failures due to timing than tests completely disappear"
...
This reverts commit 390927772e
.
2015-02-12 14:48:49 -05:00
Joe Bowser
390927772e
Reverting the refactor. I'd rather have 4 failures due to timing than tests completely disappear
2015-02-11 14:28:50 -08:00
Ian Clelland
167e283450
Update native tests
2015-02-11 14:01:11 -05:00
Andrew Grieve
4358a04730
Big Refactor of integration tests: use locks rather than timeouts, deleted disabled tests, Use same activity for most tests
2015-02-10 22:04:42 -05:00
Andrew Grieve
83120a5bea
CB-8382 Make CordovaActivity not implement CordovaInterface
...
Instead, use a CordovaInterfaceImpl class. This also makes it easier
for apps to implement the interface without extending CordovaActivity.
2015-02-03 16:27:16 -05:00
Andrew Grieve
a2fed200fe
CB-8378 Remove reference to LinearLayoutSoftKeyboardDetect from unit tests
2015-01-30 10:26:33 -05:00
Andrew Grieve
efeeef214b
Paste in the command for downloading robotium in tests readme
2015-01-30 10:17:18 -05:00
Andrew Grieve
3b909253bb
Merge branch 'master' into 4.0.x (gradle plugin extension)
2015-01-26 16:28:31 -05:00
Marcel Kinard
f459eaa5ea
Add missing license to gradle file.
2015-01-22 15:22:55 -05:00
Andrew Grieve
076e93184b
Make unit tests compile on 4.0.x (couple APIs changed)
2015-01-20 15:03:46 -05:00
Andrew Grieve
c352b296da
Merge branch 'master' into 4.0.x (gradlify tests)
...
Conflicts:
test/androidTest/src/org/apache/cordova/test/junit/MenuTest.java
2015-01-20 14:55:44 -05:00
Andrew Grieve
9e04eec9dd
Make BackButtonMultiPageTest tests not hang forever.
...
They still don't pass, but at least fail now.
2015-01-20 14:53:31 -05:00
Andrew Grieve
0e19f88a04
Make unit tests work with Gradle
...
Had to split the test app from the tests, since that's how gradle forces
you to do it.
2015-01-20 14:31:59 -05:00
Andrew Grieve
e788e8fa0f
Delete test/ ant files and cordova scripts
2015-01-20 14:14:39 -05:00
Andrew Grieve
7f4d5aeb0e
Merge branch 'master' into 4.0.x (move preference activation, alert dialog leak)
...
Conflicts:
framework/src/org/apache/cordova/AndroidChromeClient.java
framework/src/org/apache/cordova/CordovaActivity.java
framework/src/org/apache/cordova/CordovaWebView.java
test/src/org/apache/cordova/test/menus.java
closes #123
2014-10-04 15:30:25 -04:00
Joe Bowser
6cbf6b7875
CB-7674: Added sleep to avoid null error after most recent change to not break API
2014-09-30 17:57:42 -07:00
Marcel Kinard
c255a84941
CB-7674 move preference activation back into onCreate()
...
The preference creation actually needs to be before
super.onCreate(savedInstance) in order to avoid the exception
"requestFeature() must be called before adding content". Also ran into an
issue in the native tests "Whitelist" and "User WebView/Client/Chrome" where
it would throw an exception that the CordovaWebView appView already had
a parent and needed to be removed from that parent before the invocation
to root.addView(appView). So I conditionally remove the wrong parent.
Also made a change to the native tests so the menus test would work.
I also put super.init() back into the template, though invoking it is optional
as loadUrl will call it automatically if needed.
2014-09-30 19:38:34 -04:00
Andrew Grieve
e5efc91ef4
Merge branch 'master' into 4.0.x (JAVA_HOME on Ubuntu)
2014-09-29 10:16:33 -04:00
Marcel Kinard
a658ea1573
CB-7410 update the docs to match the actual title
2014-09-25 11:25:09 -04:00
Ian Clelland
dd5a337a49
Merge branch 'master' into 4.0.x
...
Conflicts:
framework/src/org/apache/cordova/CordovaActivity.java
2014-09-11 10:18:35 -04:00
Ian Clelland
51e634ccb4
Merge branch 'master' into 4.0.x (up to 3.7.0-dev)
...
Conflicts:
VERSION
bin/templates/cordova/version
framework/src/org/apache/cordova/CordovaWebView.java
package.json
test/src/org/apache/cordova/test/basicauth.java
test/src/org/apache/cordova/test/menus.java
2014-09-11 10:16:46 -04:00
Ian Clelland
31b1a821ca
Merge branch 'master' into 4.0.x (External whitelist changes)
2014-09-11 10:08:45 -04:00
Joe Bowser
81cc3c260f
CB-7463: Adding licences. I don't know what the gradle syntax is for comments, that still needs to be done.
2014-09-04 10:32:29 -07:00
Marcel Kinard
0cde8819cf
CB-7410 fix the menu test
...
Need to show the title in order for the options menu button to be visible.
2014-08-29 18:07:29 -04:00
Marcel Kinard
07632b0eeb
CB-7410 Fix the errorUrl test
...
Make the error.html page a well-formed html document, otherwise it
won't display.
2014-08-29 17:38:03 -04:00
Marcel Kinard
4a7f825cfe
CB-7410 Fix Basic Authentication test
...
Looks like the Chromium webview does not include the port number on the
hostname during the callback challenge, but the classic webview does
include the port number. Handle both cases here.
2014-08-29 16:41:51 -04:00
Marcel Kinard
12a27643db
CB-7410 clarify the title
2014-08-27 13:56:31 -04:00
Marcel Kinard
16e3ebd87b
CB-7410 add whitelist entries to get iframe/GoogleMaps working
2014-08-26 17:20:58 -04:00
Marcel Kinard
94c096dd5b
CB-7291 propogate change in method signature to the native tests
2014-08-26 16:38:04 -04:00
Andrew Grieve
4c1942e3fe
Merge branch 'master' into 4.0.x (build & create script updates)
...
Conflicts:
bin/lib/check_reqs.js
bin/lib/create.js
bin/node_modules/which/package.json
bin/templates/cordova/lib/build.js
2014-08-19 12:02:36 -04:00
Joe Bowser
50ea162251
Change in test's AndroidManifest.xml needed for the test to run properly. Forgot the manifest.
2014-08-14 14:30:31 -07:00
Joe Bowser
9c239804d3
Change in test's AndroidManifest.xml needed for the test to run properly
2014-08-14 14:29:54 -07:00
Joe Bowser
a7ccb9243d
Merging latest master, including new tests
2014-08-14 14:20:49 -07:00
Joe Bowser
320e31bb10
Adding tests related to 3.5.1
2014-08-12 11:09:53 -07:00
Joe Bowser
48b51c451a
CB-7238: I should have collapsed this, but Config.init() must go before the creation of CordovaWebView
2014-07-31 09:23:14 -07:00
Joe Bowser
3d191d5884
CB-7238: Minor band-aid to get tests running again, this has to go away before 3.6.0 is released, since this is an API change.
2014-07-31 08:17:31 -07:00
Andrew Grieve
e2b3f76a10
Merge branch 'master' into 4.0.x (PluginEntry refactor)
...
Conflicts:
framework/src/org/apache/cordova/PluginEntry.java
framework/src/org/apache/cordova/PluginManager.java
test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java
2014-07-14 14:18:10 -04:00
Andrew Grieve
a33cdc9c7b
Fix broken unit test due to missing Config.init() call
2014-07-14 14:06:47 -04:00
Andrew Grieve
f38c460588
Merge branch 'master' into 4.0.x (Unbreak unit tests)
...
Conflicts:
test/src/org/apache/cordova/test/junit/GapClientTest.java
test/src/org/apache/cordova/test/userwebview.java
test/src/org/apache/cordova/test/whitelist.java
2014-07-10 10:30:05 -04:00
Andrew Grieve
d8a19b5565
Update unit tests to not use most deprecated things (e.g. DroidGap)
2014-07-10 10:23:44 -04:00
Andrew Grieve
9358838dab
Merge branch 'master' into 4.0.x (unit test tweaks)
...
Conflicts:
framework/src/org/apache/cordova/CordovaWebView.java
2014-07-09 21:12:45 -04:00
Andrew Grieve
2f24e42dc1
Make CordovaWebview resilient to init() not being called (for backwards-compatibility)
...
This can happen when apps are not utilizing CordovaActivity and instead
creating their own CordovaWebView.
2014-07-09 21:08:29 -04:00
Andrew Grieve
9c5e340fb8
Merge branch 'master' into 4.0.x (App plugin from config.xml -> code)
...
Conflicts:
bin/templates/cordova/defaults.xml
framework/res/xml/config.xml
framework/src/org/apache/cordova/CordovaWebView.java
2014-07-08 11:52:44 -04:00
Andrew Grieve
e86c2e5970
Move registration of App plugin from config.xml -> code
...
Less fragile this way.
2014-07-08 11:47:26 -04:00
Joe Bowser
c47bcb2f54
This breaks running the JUnit tests, we'll bring it back soon
2014-06-24 12:55:56 -07:00
Joe Bowser
8ac067da89
Rethinking the URI helper
2014-06-19 13:20:44 -07:00
Andrew Grieve
6abb9da88a
Merge branch 'master' into 4.0.x
...
Conflicts:
bin/templates/project/custom_rules.xml
framework/src/org/apache/cordova/CordovaWebView.java
test/src/org/apache/cordova/test/junit/MessageTest.java
2014-06-08 22:54:21 -04:00
Marcel Kinard
2661e010d9
CB-6784 Add missing licenses
...
for ./test/assets/www/cordova_plugins.js and ./test/res/xml/config.xml
2014-05-30 15:10:54 -04:00
Marcel Kinard
f77b20bbca
CB-6723 Update package name for Robotium
2014-05-23 11:31:13 -07:00
Marcel Kinard
1d0a1664e6
CB-6707 Update minSdkVersion to 10 consistently
...
Update minSdkVersion in the AndroidManifest for the cordova.jar and the
test project.
2014-05-23 11:30:58 -07:00
Joe Bowser
1dcba51092
Set VERSION to 3.6.0-dev (via coho)
2014-05-23 11:30:57 -07:00
Marcel Kinard
e98f6ae570
CB-6723 Update package name for Robotium
2014-05-20 07:09:02 -04:00
Marcel Kinard
0b5bf0c098
CB-6707 Update minSdkVersion to 10 consistently
...
Update minSdkVersion in the AndroidManifest for the cordova.jar and the
test project.
2014-05-20 07:00:21 -04:00
Joe Bowser
b6664cc859
Added two more required methods to CordovaWebView to get the Junit tests running, removed tests that make no sense
2014-05-14 11:09:21 -07:00
Vyacheslav Shabelnik
8e260d5c40
CB-5714 Fix of android build when too big output stops build with error due to buffer overflow.
2013-12-30 11:06:37 -05:00
Joe Bowser
642bd10dcc
Forgot Apache Headers on MessageTest
2013-12-03 15:52:38 -08:00
Joe Bowser
0fe6d9f367
Updating the README
2013-11-29 14:28:11 -08:00
Joe Bowser
41cace9a96
Updating tests to KitKat, and making the tests more thread-safe
2013-11-29 14:28:10 -08:00
Joe Bowser
4638331cb4
Incrementing API target
2013-11-29 14:28:10 -08:00
Marcel Kinard
59c0b04602
CB-5346: remove dependency on device plugin
...
- remove dependency on the device plugin in the js and html
- clean out dollar signs chars that were accidently appended to the license
- fix punctuation in the viewport value
2013-11-13 15:09:19 -05:00
Marcel Kinard
11b3cf3bfd
CB-5346: delete a stale file that isn't needed
2013-11-13 13:54:33 -05:00
Joe Bowser
9254f5a8a5
Updating instructions to indicate that the device plugin is required to be installed via plugman
2013-11-12 14:34:14 -08:00