Loading mobile/android/components/extensions/test/mochitest/file_ext_tabs_captureVisibleTab.html 0 → 100644 +13 −0 Original line number Diff line number Diff line <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"></head> <body style="background-color: rgb(${options.color})"> <!-- Fill most of the image with a neutral color to test edge-to-edge scaling. --> <div style="position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; background: rgb(${options.neutral});"></div> </body> </html> mobile/android/components/extensions/test/mochitest/mochitest.ini +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ support-files = file_iframe_document.html file_iframe_document.sjs head.js file_ext_tabs_captureVisibleTab.html tags = webextensions [test_ext_all_apis.html] Loading mobile/android/components/extensions/test/mochitest/test_ext_tabs_captureVisibleTab.html +4 −18 Original line number Diff line number Diff line Loading @@ -16,24 +16,10 @@ function* runTest(options) { options.neutral = [0xaa, 0xaa, 0xaa]; let html = ` <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"></head> <body style="background-color: rgb(${options.color})"> <!-- Fill most of the image with a neutral color to test edge-to-edge scaling. --> <div style="position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; background: rgb(${options.neutral});"></div> </body> </html> `; const BASE = "http://mochi.test:8888/tests/mobile/android/components/extensions/test/mochitest/"; const URL = BASE + "file_ext_tabs_captureVisibleTab.html"; let url = `data:text/html,${encodeURIComponent(html)}`; let win = window.open(url); let win = window.open(URL); async function background(options) { browser.test.log(`Test color ${options.color} at fullZoom=${options.fullZoom}`); Loading Loading
mobile/android/components/extensions/test/mochitest/file_ext_tabs_captureVisibleTab.html 0 → 100644 +13 −0 Original line number Diff line number Diff line <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"></head> <body style="background-color: rgb(${options.color})"> <!-- Fill most of the image with a neutral color to test edge-to-edge scaling. --> <div style="position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; background: rgb(${options.neutral});"></div> </body> </html>
mobile/android/components/extensions/test/mochitest/mochitest.ini +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ support-files = file_iframe_document.html file_iframe_document.sjs head.js file_ext_tabs_captureVisibleTab.html tags = webextensions [test_ext_all_apis.html] Loading
mobile/android/components/extensions/test/mochitest/test_ext_tabs_captureVisibleTab.html +4 −18 Original line number Diff line number Diff line Loading @@ -16,24 +16,10 @@ function* runTest(options) { options.neutral = [0xaa, 0xaa, 0xaa]; let html = ` <!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"></head> <body style="background-color: rgb(${options.color})"> <!-- Fill most of the image with a neutral color to test edge-to-edge scaling. --> <div style="position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px; background: rgb(${options.neutral});"></div> </body> </html> `; const BASE = "http://mochi.test:8888/tests/mobile/android/components/extensions/test/mochitest/"; const URL = BASE + "file_ext_tabs_captureVisibleTab.html"; let url = `data:text/html,${encodeURIComponent(html)}`; let win = window.open(url); let win = window.open(URL); async function background(options) { browser.test.log(`Test color ${options.color} at fullZoom=${options.fullZoom}`); Loading