mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1035661 - Remove useless test browser_inspector_scrolling.js; r=miker
MozReview-Commit-ID: 5PU2iXMFcIZ
This commit is contained in:
parent
84a8ddd04b
commit
5ff70ce21e
@ -101,8 +101,6 @@ skip-if = e10s && debug && os == 'win' # Bug 1250058 - Docshell leak on win debu
|
||||
[browser_inspector_reload-01.js]
|
||||
[browser_inspector_reload-02.js]
|
||||
[browser_inspector_remove-iframe-during-load.js]
|
||||
[browser_inspector_scrolling.js]
|
||||
skip-if = e10s # Test synthesize scrolling events in content. Also, see bug 1035661.
|
||||
[browser_inspector_search-01.js]
|
||||
[browser_inspector_search-02.js]
|
||||
[browser_inspector_search-03.js]
|
||||
|
@ -1,45 +0,0 @@
|
||||
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* 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/. */
|
||||
"use strict";
|
||||
|
||||
// Test that highlighted nodes can be scrolled.
|
||||
// TODO: This doesn't test anything useful. See b.m.o 1035661.
|
||||
const IFRAME_SRC = "data:text/html;charset=utf-8," +
|
||||
"<div style='height:500px; width:500px; border:1px solid gray;'>" +
|
||||
"big div" +
|
||||
"</div>";
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf-8," +
|
||||
"<p>browser_inspector_scrolling.js</p>" +
|
||||
"<iframe src=\"" + IFRAME_SRC + "\" />";
|
||||
|
||||
add_task(function* () {
|
||||
let { inspector, toolbox } = yield openInspectorForURL(TEST_URI);
|
||||
|
||||
let iframe = getNode("iframe");
|
||||
let div = getNode("div", { document: iframe.contentDocument });
|
||||
let divFront = yield getNodeFrontInFrame("div", "iframe", inspector);
|
||||
|
||||
info("Waiting for highlighter box model to appear.");
|
||||
yield toolbox.highlighter.showBoxModel(divFront);
|
||||
|
||||
let scrolled = once(gBrowser.selectedBrowser, "scroll");
|
||||
|
||||
info("Scrolling iframe.");
|
||||
EventUtils.synthesizeWheel(div, 10, 10,
|
||||
{ deltaY: 50.0, deltaMode: WheelEvent.DOM_DELTA_PIXEL },
|
||||
iframe.contentWindow);
|
||||
|
||||
info("Waiting for scroll event");
|
||||
yield scrolled;
|
||||
|
||||
let isRetina = devicePixelRatio === 2;
|
||||
is(iframe.contentDocument.body.scrollTop,
|
||||
isRetina ? 25 : 50, "inspected iframe scrolled");
|
||||
|
||||
info("Hiding box model.");
|
||||
yield toolbox.highlighter.hideBoxModel();
|
||||
});
|
Loading…
Reference in New Issue
Block a user