From 73968ba1b3c3b5efeb92f70969e40d143eebf3d8 Mon Sep 17 00:00:00 2001 From: ARC Date: Wed, 13 May 2015 14:58:25 -0400 Subject: Added plugin directory as well to make sure you have all you need to compile (hopefully) --- .../tests/resources/inject.css | 21 +++++++ .../tests/resources/inject.html | 44 ++++++++++++++ .../tests/resources/inject.js | 20 ++++++ .../tests/resources/local.html | 67 +++++++++++++++++++++ .../tests/resources/local.pdf | Bin 0 -> 8568 bytes .../tests/resources/video.html | 42 +++++++++++++ 6 files changed, 194 insertions(+) create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/inject.css create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/inject.html create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/inject.js create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/local.html create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf create mode 100644 plugins/cordova-plugin-inappbrowser/tests/resources/video.html (limited to 'plugins/cordova-plugin-inappbrowser/tests/resources') diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/inject.css b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.css new file mode 100644 index 00000000..3f6e41c8 --- /dev/null +++ b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.css @@ -0,0 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. +*/ +#style-update-file { + display: block !important; +} diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/inject.html b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.html new file mode 100644 index 00000000..3004b358 --- /dev/null +++ b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.html @@ -0,0 +1,44 @@ + + + + + + + + + Cordova Mobile Spec + + + +

InAppBrowser - Script / Style Injection Test

+ + +
User-Agent:
+ + + diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/inject.js b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.js new file mode 100644 index 00000000..6f254939 --- /dev/null +++ b/plugins/cordova-plugin-inappbrowser/tests/resources/inject.js @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. +*/ +var d = document.getElementById("header") +d.innerHTML = "Script file successfully injected"; diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/local.html b/plugins/cordova-plugin-inappbrowser/tests/resources/local.html new file mode 100644 index 00000000..d23a7144 --- /dev/null +++ b/plugins/cordova-plugin-inappbrowser/tests/resources/local.html @@ -0,0 +1,67 @@ + + + + + + + + + IAB test page + + + + + +

Local URL

+
+ You have successfully loaded a local URL: + +
+
+
User-Agent =
+
+
Likely running inAppBrowser: Device version from Cordova=not found, Back link should not work, toolbar may be present, logcat should show failed 'gap:' calls.
+
+
Visit Google (whitelisted)
+
Visit Yahoo (not whitelisted)
+
Check out my remote PDF
+
Check out my local PDF
+

Back +

+ +

tall div with border
+ + + diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf b/plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf new file mode 100644 index 00000000..b54f1b75 Binary files /dev/null and b/plugins/cordova-plugin-inappbrowser/tests/resources/local.pdf differ diff --git a/plugins/cordova-plugin-inappbrowser/tests/resources/video.html b/plugins/cordova-plugin-inappbrowser/tests/resources/video.html new file mode 100644 index 00000000..64ea3d11 --- /dev/null +++ b/plugins/cordova-plugin-inappbrowser/tests/resources/video.html @@ -0,0 +1,42 @@ + + + + + + + + + Cordova Mobile Spec + + + + +
+ + +
+ + -- cgit v1.2.3