summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/androidTest/assets
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /mobile/android/fenix/app/src/androidTest/assets
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mobile/android/fenix/app/src/androidTest/assets')
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/addressForm.html24
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/audioMediaPage.html20
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/creditCardForm.html38
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/cross-site-cookies.html20
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/externalLinks.html34
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/generic1.html14
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/generic2.html14
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/generic3.html27
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/generic4.html16
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/global_privacy_control.html23
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/lorem-ipsum.html60
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/mutedVideoPage.html68
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/password.html37
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/passwordsubmit.html12
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/refresh.html61
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/storage_check.html34
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/storage_write.html42
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html68
18 files changed, 318 insertions, 294 deletions
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/addressForm.html b/mobile/android/fenix/app/src/androidTest/assets/pages/addressForm.html
index 0ca8bf3bf5..a09fab9788 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/addressForm.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/addressForm.html
@@ -1,17 +1,17 @@
<html>
-<head>
- <meta name="viewport" content="width=device-width">
+ <head>
+ <meta name="viewport" content="width=device-width" />
<title>Address_Form</title>
-</head>
-<body>
+ </head>
+ <body>
<form>
- <p>Street Address: <input id="streetAddress" type="text"></p>
- <p>City: <input id="city" type="text"></p>
- <p>Zip Code: <input id="zipCode" type="text"></p>
- <p>Country: <input id="country" type="text"></p>
- <p>Telephone: <input id="telephone" type="text"></p>
- <p>Email: <input id="email" type="text"></p>
- <p>Apartment, suite, etc. <input id="apartment" type="text"></p>
+ <p>Street Address: <input id="streetAddress" type="text" /></p>
+ <p>City: <input id="city" type="text" /></p>
+ <p>Zip Code: <input id="zipCode" type="text" /></p>
+ <p>Country: <input id="country" type="text" /></p>
+ <p>Telephone: <input id="telephone" type="text" /></p>
+ <p>Email: <input id="email" type="text" /></p>
+ <p>Apartment, suite, etc. <input id="apartment" type="text" /></p>
</form>
-</body>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/audioMediaPage.html b/mobile/android/fenix/app/src/androidTest/assets/pages/audioMediaPage.html
index 4d82abb822..94393e6bdb 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/audioMediaPage.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/audioMediaPage.html
@@ -1,13 +1,13 @@
<html>
-<head>
+ <head>
<title>Audio_Test_Page</title>
-</head>
-<body>
-<p id="testContent">Page content: audio player</p>
-<div class="audioPlayer">
- <audio id="audioSample" controls loop>
- <source src="../resources/audioSample.mp3">
- </audio>
-</div>
-</body>
+ </head>
+ <body>
+ <p id="testContent">Page content: audio player</p>
+ <div class="audioPlayer">
+ <audio id="audioSample" controls loop>
+ <source src="../resources/audioSample.mp3" />
+ </audio>
+ </div>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/creditCardForm.html b/mobile/android/fenix/app/src/androidTest/assets/pages/creditCardForm.html
index 7b77e92872..57ede7ddf8 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/creditCardForm.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/creditCardForm.html
@@ -1,17 +1,31 @@
<html>
-<head>
- <meta name="viewport" content="width=device-width">
+ <head>
+ <meta name="viewport" content="width=device-width" />
<title>Credit_Card_Form</title>
-</head>
-<body>
+ </head>
+ <body>
<form>
- <p>Card information</p>
- <p>Card Number: <input id="cardNumber" type="text" placeholder="1234 1234 1234 1234"></p>
- <p>Name on card: <input id="nameOnCard"type="text" placeholder="Name on card"></p>
- <p> Expiry date:
- <input id="expiryMonthAndYear" inputmode="numerical" placeholder="MM / YYYY" type="text" />
- </p>
- <p><input type="submit" id="submit" value="Submit" aria-label="submit"/></p>
+ <p>Card information</p>
+ <p>
+ Card Number:
+ <input id="cardNumber" type="text" placeholder="1234 1234 1234 1234" />
+ </p>
+ <p>
+ Name on card:
+ <input id="nameOnCard" type="text" placeholder="Name on card" />
+ </p>
+ <p>
+ Expiry date:
+ <input
+ id="expiryMonthAndYear"
+ inputmode="numerical"
+ placeholder="MM / YYYY"
+ type="text"
+ />
+ </p>
+ <p>
+ <input type="submit" id="submit" value="Submit" aria-label="submit" />
+ </p>
</form>
-</body>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/cross-site-cookies.html b/mobile/android/fenix/app/src/androidTest/assets/pages/cross-site-cookies.html
index 8b81b3b3f4..1dc01c669a 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/cross-site-cookies.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/cross-site-cookies.html
@@ -1,15 +1,19 @@
<html>
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ <!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-<!-- This asset is using the code behind
+ <!-- This asset is using the code behind
- https://www.mozilla-anti-tracking.com/test/dfpi/storage_access_api.html
- test page.
- Source repository: https://github.com/mozilla/anti-tracking-test-pages -->
-<body>
-<h2>Cross-site cookies storage access test</h2>
-<h3>anti-tracker-test.com</h3>
-<h4>different site, cross-origin iframe</h4>
-<iframe width=500 height=1000 src="https://mozilla-mobile.github.io/testapp/anti-tracker-test_set_storage_with_sa_api.html"></iframe>
-</body>
+ <body>
+ <h2>Cross-site cookies storage access test</h2>
+ <h3>anti-tracker-test.com</h3>
+ <h4>different site, cross-origin iframe</h4>
+ <iframe
+ width="500"
+ height="1000"
+ src="https://mozilla-mobile.github.io/testapp/anti-tracker-test_set_storage_with_sa_api.html"
+ ></iframe>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/externalLinks.html b/mobile/android/fenix/app/src/androidTest/assets/pages/externalLinks.html
index 755d15ac84..88652d283f 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/externalLinks.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/externalLinks.html
@@ -1,29 +1,31 @@
<!DOCTYPE html>
<html>
-<head>
+ <head>
<title>Html_Control_Form</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
-</head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width" />
+ </head>
-<p>Misc Link Types</p>
-<section>
+ <p>Misc Link Types</p>
+ <section>
<a href="mailto://example@example.com">Email link</a>
-</section>
+ </section>
-<section>
+ <section>
<a href="tel://1234567890">Telephone link</a>
-</section>
+ </section>
-<section>
+ <section>
<a href="vnd.youtube://@Mozilla">Youtube schema link</a>
-</section>
+ </section>
-<section>
+ <section>
<a href="https://m.youtube.com/user/mozilla?cbrd=1">Youtube full link</a>
-</section>
+ </section>
-<section>
- <a href="http://play.google.com/store/apps/details?id=org.mozilla.firefox">Playstore link</a>
-</section>
+ <section>
+ <a href="http://play.google.com/store/apps/details?id=org.mozilla.firefox"
+ >Playstore link</a
+ >
+ </section>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/generic1.html b/mobile/android/fenix/app/src/androidTest/assets/pages/generic1.html
index 4aa0dfb819..b4b8d9f159 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/generic1.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/generic1.html
@@ -1,10 +1,10 @@
<html>
-<head>
+ <head>
<title>Test_Page_1</title>
-</head>
-<body>
-<h1>
- <p id="testContent">Page content: 1</p>
-</h1>
-</body>
+ </head>
+ <body>
+ <h1>
+ <p id="testContent">Page content: 1</p>
+ </h1>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/generic2.html b/mobile/android/fenix/app/src/androidTest/assets/pages/generic2.html
index 39a7220f53..8cf29b5c18 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/generic2.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/generic2.html
@@ -1,10 +1,10 @@
<html>
-<head>
+ <head>
<title>Test_Page_2</title>
-</head>
-<body>
-<h1>
- <p id="testContent">Page content: 2</p>
-</h1>
-</body>
+ </head>
+ <body>
+ <h1>
+ <p id="testContent">Page content: 2</p>
+ </h1>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/generic3.html b/mobile/android/fenix/app/src/androidTest/assets/pages/generic3.html
index 2f033ec8dc..ff9c4032f2 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/generic3.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/generic3.html
@@ -1,16 +1,19 @@
<html>
-<head>
+ <head>
<title>Test_Page_3</title>
-</head>
-<body>
-<h1>
- <p id="testContent">Page content: 3</p>
- <p>
- <a href="https://play.google.com/store/apps/details?id=org.mozilla.fenix">Mozilla Playstore link</a>
- </p>
- <p>
+ </head>
+ <body>
+ <h1>
+ <p id="testContent">Page content: 3</p>
+ <p>
+ <a
+ href="https://play.google.com/store/apps/details?id=org.mozilla.fenix"
+ >Mozilla Playstore link</a
+ >
+ </p>
+ <p>
<a href="../resources/pdfForm.pdf">PDF form file</a>
- </p>
-</h1>
-</body>
+ </p>
+ </h1>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/generic4.html b/mobile/android/fenix/app/src/androidTest/assets/pages/generic4.html
index 368cfb9270..18a8a7a629 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/generic4.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/generic4.html
@@ -1,20 +1,20 @@
<html>
-<head>
+ <head>
<meta name="viewport" content="width=device-width" />
<title>Test_Page_4</title>
-</head>
-<body>
+ </head>
+ <body>
<p id="testContent">Page content: 4</p>
<a href="generic1.html">Link 1</a>
<a href="generic2.html">Link 2</a>
<a href="generic3.html">Link 3</a>
<p>
- <a href="../resources/rabbit.jpg">
- <img src="../resources/rabbit.jpg" alt="test_link_image">
- </a>
+ <a href="../resources/rabbit.jpg">
+ <img src="../resources/rabbit.jpg" alt="test_link_image" />
+ </a>
</p>
<p>
- <img src="../resources/rabbit.jpg" alt="test_no_link_image">
+ <img src="../resources/rabbit.jpg" alt="test_no_link_image" />
</p>
-</body>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/global_privacy_control.html b/mobile/android/fenix/app/src/androidTest/assets/pages/global_privacy_control.html
index e08df8c17f..d8961ebc0a 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/global_privacy_control.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/global_privacy_control.html
@@ -1,15 +1,14 @@
<!DOCTYPE html>
<html>
-<meta name="viewport" content="width=device-width">
-<body>
-<script type = "text/javascript" >
- const gpcValue = navigator.globalPrivacyControl
- if (gpcValue) {
- document.write('<p>GPC is enabled.</p>');
- } else {
- document.write('<p>GPC not enabled.</p>');
- }
-</script>
-
-</body>
+ <meta name="viewport" content="width=device-width" />
+ <body>
+ <script type="text/javascript">
+ const gpcValue = navigator.globalPrivacyControl;
+ if (gpcValue) {
+ document.write("<p>GPC is enabled.</p>");
+ } else {
+ document.write("<p>GPC not enabled.</p>");
+ }
+ </script>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/lorem-ipsum.html b/mobile/android/fenix/app/src/androidTest/assets/pages/lorem-ipsum.html
index ca519d6176..8fac0ecf68 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/lorem-ipsum.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/lorem-ipsum.html
@@ -1,36 +1,36 @@
<!DOCTYPE html>
<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <title>
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
+ eirmod tempor invidunt
+ </title>
+ <meta content="width=device-width, initial-scale=1" name="viewport" />
+ </head>
-<head>
- <meta charset="utf-8"/>
- <title>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
- eirmod tempor invidunt</title>
- <meta content="width=device-width, initial-scale=1"
- name="viewport"/>
-</head>
+ <body>
+ <p id="testContent">Page content: lorem ipsum</p>
-<body>
-
-<p id="testContent">Page content: lorem ipsum</p>
-
-<h1>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt</h1>
-
-<p>
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
- eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
- voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
- clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
- amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
- nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
- sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
- Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
- sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
- diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
- sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
- Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
- sit amet.
-</p>
-
-</body>
+ <h1>
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
+ eirmod tempor invidunt
+ </h1>
+ <p>
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
+ eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
+ voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
+ clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
+ amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
+ nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed
+ diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
+ Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
+ sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
+ diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
+ erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
+ rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum
+ dolor sit amet.
+ </p>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/mutedVideoPage.html b/mobile/android/fenix/app/src/androidTest/assets/pages/mutedVideoPage.html
index 51f93c7e78..6963088be5 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/mutedVideoPage.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/mutedVideoPage.html
@@ -1,49 +1,51 @@
-<!DOCTYPE HTML>
+<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
-<head>
+ <head>
<title>Muted_Video_Test_Page</title>
-</head>
-<body>
-<p id="testContent">Page content: muted video player</p>
-<div class="playbackState">
- <p>Media file not playing</p>
-</div>
-<div id="video-container" style="text-align:center">
- <button onclick="play()">Play</button>
- <button onclick="pause()">Pause</button>
- <button onclick="fullscreen()">Full Screen</button>
- <br><br>
- <video id="mutedVideo" width="420" autoplay muted controls loop>
- <source src="../resources/clip.mp4" type="video/mp4">
+ </head>
+ <body>
+ <p id="testContent">Page content: muted video player</p>
+ <div class="playbackState">
+ <p>Media file not playing</p>
+ </div>
+ <div id="video-container" style="text-align: center">
+ <button onclick="play()">Play</button>
+ <button onclick="pause()">Pause</button>
+ <button onclick="fullscreen()">Full Screen</button>
+ <br /><br />
+ <video id="mutedVideo" width="420" autoplay muted controls loop>
+ <source src="../resources/clip.mp4" type="video/mp4" />
Your browser does not support HTML video.
- </video>
-</div>
+ </video>
+ </div>
-<script>
- const mutedVideo = document.getElementById("mutedVideo");
+ <script>
+ const mutedVideo = document.getElementById("mutedVideo");
- function play() {
+ function play() {
mutedVideo.play();
- }
+ }
- function pause() {
+ function pause() {
mutedVideo.pause();
- }
+ }
- function fullscreen() {
+ function fullscreen() {
mutedVideo.requestFullscreen();
- }
+ }
- mutedVideo.addEventListener('playing', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is playing";
- });
+ mutedVideo.addEventListener("playing", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is playing";
+ });
- mutedVideo.addEventListener('pause', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is paused";
- });
-</script>
-</body>
+ mutedVideo.addEventListener("pause", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is paused";
+ });
+ </script>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/password.html b/mobile/android/fenix/app/src/androidTest/assets/pages/password.html
index f906d33707..0faf69511f 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/password.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/password.html
@@ -1,22 +1,23 @@
-
<html>
+ <head>
+ <meta name="viewport" content="width=device-width" />
+ </head>
-<head>
-<meta name="viewport" content="width=device-width">
-</head>
-
-<body aria-label="body">
-
-<form method="GET" action="passwordsubmit.html">
-<p>Username: <input id="username" type="text" value="test@example.com"></p>
-<p>Password: <input id="password" type="password" value="verysecret"></p>
-<p><input type="submit" id="submit" value="Login" aria-label="submit"/></p>
-</form>
-
-</body>
-
-<script>
-document.getElementById("password").value = Math.random().toString();
-</script>
+ <body aria-label="body">
+ <form method="GET" action="passwordsubmit.html">
+ <p>
+ Username: <input id="username" type="text" value="test@example.com" />
+ </p>
+ <p>
+ Password: <input id="password" type="password" value="verysecret" />
+ </p>
+ <p>
+ <input type="submit" id="submit" value="Login" aria-label="submit" />
+ </p>
+ </form>
+ </body>
+ <script>
+ document.getElementById("password").value = Math.random().toString();
+ </script>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/passwordsubmit.html b/mobile/android/fenix/app/src/androidTest/assets/pages/passwordsubmit.html
index 5f55881be2..e3cdfdf9eb 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/passwordsubmit.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/passwordsubmit.html
@@ -1,8 +1,8 @@
<html>
-<head>
-<meta name="viewport" content="width=device-width">
-</head>
-<body aria-label="body">
-<p>Password submitted. Nope just a test.</p>
-</body>
+ <head>
+ <meta name="viewport" content="width=device-width" />
+ </head>
+ <body aria-label="body">
+ <p>Password submitted. Nope just a test.</p>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/refresh.html b/mobile/android/fenix/app/src/androidTest/assets/pages/refresh.html
index 1b8ff6fe9c..1951f917bb 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/refresh.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/refresh.html
@@ -1,44 +1,41 @@
-
<html>
-<script>
-
- function setCookie(newVal){
- window.document.cookie = "pageStatus = " + newVal + ";";
+ <script>
+ function setCookie(newVal) {
+ window.document.cookie = "pageStatus = " + newVal + ";";
}
-
function readCookie(name) {
- var nameEQ = name + "=";
- var ca = document.cookie.split(';');
- for(var i=0;i < ca.length;i++) {
- var c = ca[i];
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
- }
- return null;
+ var nameEQ = name + "=";
+ var ca = document.cookie.split(";");
+ for (var i = 0; i < ca.length; i++) {
+ var c = ca[i];
+ while (c.charAt(0) == " ") c = c.substring(1, c.length);
+ if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
+ }
+ return null;
}
- function valSwap(){
- currentCookie = readCookie("pageStatus");
- if(currentCookie == null) {
- setCookie("DEFAULT");
- }
+ function valSwap() {
+ currentCookie = readCookie("pageStatus");
+ if (currentCookie == null) {
+ setCookie("DEFAULT");
+ }
- if (currentCookie.localeCompare("REFRESHED") == 0) {
- setCookie("DEFAULT");
- return "DEFAULT";
- } else {
- setCookie("REFRESHED");
- return "REFRESHED";
- }
+ if (currentCookie.localeCompare("REFRESHED") == 0) {
+ setCookie("DEFAULT");
+ return "DEFAULT";
+ } else {
+ setCookie("REFRESHED");
+ return "REFRESHED";
+ }
}
var textToShow = valSwap();
- window.addEventListener('DOMContentLoaded', (event) => {
- document.querySelector('h1').innerHTML = textToShow;
+ window.addEventListener("DOMContentLoaded", event => {
+ document.querySelector("h1").innerHTML = textToShow;
});
-</script>
-<body>
-<h1>DEFAULT</h1>
-</body>
+ </script>
+ <body>
+ <h1>DEFAULT</h1>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/storage_check.html b/mobile/android/fenix/app/src/androidTest/assets/pages/storage_check.html
index 23d030a4f7..79731be911 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/storage_check.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/storage_check.html
@@ -1,23 +1,21 @@
<!DOCTYPE html>
<html>
-<meta name="viewport" content="width=device-width">
-<body>
+ <meta name="viewport" content="width=device-width" />
+ <body>
+ <h1>Storage check</h1>
-<h1>Storage check</h1>
+ <script type="text/javascript">
+ if (sessionStorage.getItem("sessionTest") == "session storage") {
+ document.write("<p>Session storage has value</p>");
+ } else {
+ document.write("<p>Session storage empty</p>");
+ }
-<script type="text/javascript">
- if (sessionStorage.getItem('sessionTest') == 'session storage') {
- document.write('<p>Session storage has value</p>');
- } else {
- document.write('<p>Session storage empty</p>');
- }
-
- if (localStorage.getItem('localTest') == 'local storage') {
- document.write('<p>Local storage has value</p>');
- } else {
- document.write('<p>Local storage empty</p>');
- }
-</script>
-
-</body>
+ if (localStorage.getItem("localTest") == "local storage") {
+ document.write("<p>Local storage has value</p>");
+ } else {
+ document.write("<p>Local storage empty</p>");
+ }
+ </script>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/storage_write.html b/mobile/android/fenix/app/src/androidTest/assets/pages/storage_write.html
index a10b469462..e90ebed9e0 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/storage_write.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/storage_write.html
@@ -1,28 +1,30 @@
<!DOCTYPE html>
<html>
-<meta name="viewport" content="width=device-width">
-<body>
+ <meta name="viewport" content="width=device-width" />
+ <body>
+ <h1>Storage Write</h1>
-<h1>Storage Write</h1>
+ <p id="cookies"></p>
+ <button id="setCookies">Set cookies</button>
-<p id="cookies"></p>
-<button id="setCookies">Set cookies</button>
+ <script type="text/javascript">
+ (function () {
+ document.getElementById("cookies").textContent = document.cookie
+ ? document.cookie
+ : "No cookies set";
+ })();
-<script type="text/javascript">
- (function() {
- document.getElementById("cookies").textContent = document.cookie?document.cookie:"No cookies set";
- })();
+ document
+ .getElementById("setCookies")
+ .addEventListener("click", function () {
+ document.cookie = "user=android";
+ document.getElementById("cookies").textContent = document.cookie;
+ });
- document.getElementById("setCookies").addEventListener("click", function() {
- document.cookie = "user=android";
- document.getElementById("cookies").textContent = document.cookie;
- });
+ sessionStorage.setItem("sessionTest", "session storage");
+ localStorage.setItem("localTest", "local storage");
- sessionStorage.setItem('sessionTest', 'session storage');
- localStorage.setItem('localTest', 'local storage');
-
- document.write('<p>Values written to storage</p>');
-</script>
-
-</body>
+ document.write("<p>Values written to storage</p>");
+ </script>
+ </body>
</html>
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html b/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
index 50af35c170..3245cb5fa2 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
@@ -1,49 +1,51 @@
-<!DOCTYPE HTML>
+<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
-<head>
+ <head>
<title>Video_Test_Page</title>
-</head>
-<body>
-<p id="testContent">Page content: video player</p>
-<div class="playbackState">
- <p>Media file not playing</p>
-</div>
-<div id="video-container" style="text-align:center">
- <button onclick="play()">Play</button>
- <button onclick="pause()">Pause</button>
- <button onclick="fullscreen()">Full Screen</button>
- <br><br>
- <video id="video" width="420" autoplay controls loop>
- <source src="../resources/clip.mp4" type="video/mp4">
+ </head>
+ <body>
+ <p id="testContent">Page content: video player</p>
+ <div class="playbackState">
+ <p>Media file not playing</p>
+ </div>
+ <div id="video-container" style="text-align: center">
+ <button onclick="play()">Play</button>
+ <button onclick="pause()">Pause</button>
+ <button onclick="fullscreen()">Full Screen</button>
+ <br /><br />
+ <video id="video" width="420" autoplay controls loop>
+ <source src="../resources/clip.mp4" type="video/mp4" />
Your browser does not support HTML video.
- </video>
-</div>
+ </video>
+ </div>
-<script>
- const video = document.getElementById("video");
+ <script>
+ const video = document.getElementById("video");
- function play() {
+ function play() {
video.play();
- }
+ }
- function pause() {
+ function pause() {
video.pause();
- }
+ }
- function fullscreen() {
+ function fullscreen() {
video.requestFullscreen();
- }
+ }
- video.addEventListener('playing', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is playing";
- });
+ video.addEventListener("playing", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is playing";
+ });
- video.addEventListener('pause', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is paused";
- });
-</script>
-</body>
+ video.addEventListener("pause", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is paused";
+ });
+ </script>
+ </body>
</html>