Backed out changeset c67e5d94d6c3 (bug 1345119)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Thu, 23 Mar 2017 22:00:18 +0100
changeset 349191 bdc52a612f3e16b1887113879a7f54f06ccd0c10
parent 349190 5d8420156bc280ee05562d6bcf9093ffa2360b0a
child 349192 0cb92f5cc3bc091f05b494cae322d85066ed1df6
push id88393
push userarchaeopteryx@coole-files.de
push dateThu, 23 Mar 2017 21:01:27 +0000
treeherdermozilla-inbound@c8379919d781 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1345119
milestone55.0a1
backs outc67e5d94d6c3f8eeb431ff964c73471cb86016cf
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset c67e5d94d6c3 (bug 1345119)
devtools/server/tests/mochitest/chrome.ini
devtools/server/tests/mochitest/inspector_getOffsetParent.html
devtools/server/tests/mochitest/test_inspector_getOffsetParent.html
--- a/devtools/server/tests/mochitest/chrome.ini
+++ b/devtools/server/tests/mochitest/chrome.ini
@@ -5,17 +5,16 @@ support-files =
   animation-data.html
   Debugger.Source.prototype.element.js
   Debugger.Source.prototype.element-2.js
   Debugger.Source.prototype.element.html
   director-helpers.js
   hello-actor.js
   inspector_css-properties.html
   inspector_getImageData.html
-  inspector_getOffsetParent.html
   inspector-delay-image-response.sjs
   inspector-eyedropper.html
   inspector-helpers.js
   inspector-search-data.html
   inspector-styles-data.css
   inspector-styles-data.html
   inspector-traversal-data.html
   large-image.jpg
@@ -51,17 +50,16 @@ support-files =
 [test_inspector-changeattrs.html]
 [test_inspector-changevalue.html]
 [test_inspector-dead-nodes.html]
 [test_inspector-duplicate-node.html]
 [test_inspector_getImageData.html]
 [test_inspector_getImageDataFromURL.html]
 [test_inspector_getImageData-wait-for-load.html]
 [test_inspector_getNodeFromActor.html]
-[test_inspector_getOffsetParent.html]
 [test_inspector-hide.html]
 [test_inspector-insert.html]
 [test_inspector-mutations-attr.html]
 [test_inspector-mutations-events.html]
 [test_inspector-mutations-childlist.html]
 [test_inspector-mutations-frameload.html]
 [test_inspector-mutations-value.html]
 [test_inspector-pick-color.html]
deleted file mode 100644
--- a/devtools/server/tests/mochitest/inspector_getOffsetParent.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<html>
-<head>
-<body>
-    <div id="relative_parent" style="position: relative">
-        <div id="absolute_child" style="position: absolute"></div>
-    </div>
-    <div id="static"></div>
-    <div id="no_parent" style="position: absolute"></div>
-    <div id="fixed" style="position: fixed"></div>
-    <script>
-       window.onload = () => {
-         window.opener.postMessage('ready', '*')
-       }
-     </script>
-</body>
-</html>
deleted file mode 100644
--- a/devtools/server/tests/mochitest/test_inspector_getOffsetParent.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=1345119
--->
-<head>
-  <meta charset="utf-8">
-  <title>Test for Bug 1345119</title>
-
-  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
-  <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
-  <script type="application/javascript" src="inspector-helpers.js"></script>
-  <script type="application/javascript">
-const inspector = require("devtools/shared/fronts/inspector");
-
-window.onload = function() {
-  SimpleTest.waitForExplicitFinish();
-  runNextTest();
-}
-
-var gWalker;
-var gBodyNode;
-
-addTest(function setup() {
-  let url = document.getElementById("inspectorContent").href;
-  attachURL(url, function(err, client, tab, doc) {
-    let {InspectorFront} = require("devtools/shared/fronts/inspector");
-    let inspector = InspectorFront(client, tab);
-
-    promiseDone(inspector.getWalker().then(walker => {
-      gWalker = walker;
-      return gWalker.querySelector(gWalker.rootNode, "body");
-    }).then(node => {
-      gBodyNode = node;
-    }).then(runNextTest));
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for a node that is absolutely positioned inside a relative node");
-  gWalker.querySelector(gWalker.rootNode, "#absolute_child").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(offsetParent, "The node has an offset parent");
-    gWalker.querySelector(gWalker.rootNode, "#relative_parent").then(parent => {
-      ok(offsetParent === parent, "The offset parent is the correct node");
-      runNextTest();
-    });
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for a node that is absolutely positioned outside a relative node");
-  gWalker.querySelector(gWalker.rootNode, "#no_parent").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(offsetParent === gBodyNode, "The node's offset parent is the body");
-    runNextTest();
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for a relatively positioned node");
-  gWalker.querySelector(gWalker.rootNode, "#relative_parent").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(offsetParent === gBodyNode, "The node's offset parent is the body");
-    runNextTest();
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for a statically positioned node");
-  gWalker.querySelector(gWalker.rootNode, "#static").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(offsetParent === gBodyNode, "The node's offset parent is the body");
-    runNextTest();
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for a fixed positioned node");
-  gWalker.querySelector(gWalker.rootNode, "#fixed").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(offsetParent === gBodyNode, "The node's offset parent is the body");
-    runNextTest();
-  });
-});
-
-addTest(function() {
-  info("Try to get the offset parent for the body");
-  gWalker.querySelector(gWalker.rootNode, "body").then(node => {
-    return gWalker.getOffsetParent(node);
-  }).then(offsetParent => {
-    ok(!offsetParent, "The body has no offset parent");
-    runNextTest();
-  });
-});
-
-addTest(function() {
-  gWalker = null;
-  gBodyNode = null;
-  runNextTest();
-});
-  </script>
-</head>
-<body>
-<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1345119">Mozilla Bug 1345119</a>
-<a id="inspectorContent" target="_blank" href="inspector_getOffsetParent.html">Test Document</a>
-<p id="display"></p>
-<div id="content" style="display: none">
-
-</div>
-<pre id="test">
-</pre>
-</body>
-</html>