Skip to content

Commit

Permalink
Annotate more Android+nnt tests.
Browse files Browse the repository at this point in the history
Dialog-form-submission was hitting a rounding error because of a weird
DPI caused by the viewport scaling. The rest are simple annotation tweaks.

Differential Revision: https://phabricator.services.mozilla.com/D107229

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1696437
gecko-commit: 3a4b4661752253afaf0aa85c4cd54ede814431c4
gecko-reviewers: mstange
  • Loading branch information
emilio authored and moz-wptsync-bot committed Mar 10, 2021
1 parent a2d836d commit a90e275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions event-timing/crossiframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,11 @@
}
}, false);
});
let iframe = document.getElementById('iframe');
const iframeX = document.getElementById('iframe').offsetLeft;
const iframeY = document.getElementById('iframe').offsetTop;
// Tap on the iframe, with an offset of 10 to target the div inside it.
const actions = new test_driver.Actions()
.pointerMove(iframeX + 10, iframeY + 10)
.pointerMove(10, 10, { origin: document.getElementById("iframe") })
.pointerDown()
.pointerUp()
.pointerUp();
actions.send();
return Promise.all([observerPromise, childFrameEntriesPromise]);
}, "Event Timing: entries should only be observable by its own frame.");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<meta charset=urf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<title>Test dialog form submission</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
Expand Down

0 comments on commit a90e275

Please sign in to comment.