Commit eede494d authored by Christoph Kerschbaumer's avatar Christoph Kerschbaumer
Browse files

Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new...

Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new toplevel data: URI navigation policy. r=smaug
parent ac8dfa8c
Loading
Loading
Loading
Loading
+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>
+1 −0
Original line number Diff line number Diff line
@@ -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]
+4 −18
Original line number Diff line number Diff line
@@ -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}`);