Bug 1558914 - Remove non-standard Array.sort from devtools test. r=yulia
☠☠ backed out by f4d39862a9ad ☠ ☠
authorTom Schuster <evilpies@gmail.com>
Mon, 01 Jul 2019 12:52:59 +0000
changeset 540456 ac7ca81ef7c639341078af47effafdd82b5c7445
parent 540455 e7fbcb7b6694db694f701e28105239d93c6d0b4a
child 540457 8cdaaacd3b2926bfcc0e2c73bc9c55f8850e9ff8
push id11529
push userarchaeopteryx@coole-files.de
push dateThu, 04 Jul 2019 15:22:33 +0000
treeherdermozilla-beta@ebb510a784b8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyulia
bugs1558914
milestone69.0a1
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
Bug 1558914 - Remove non-standard Array.sort from devtools test. r=yulia Differential Revision: https://phabricator.services.mozilla.com/D36438
devtools/client/inspector/markup/test/browser_markup_events_04.js
devtools/client/inspector/markup/test/doc_markup_events_04.html
--- a/devtools/client/inspector/markup/test/browser_markup_events_04.js
+++ b/devtools/client/inspector/markup/test/browser_markup_events_04.js
@@ -111,26 +111,26 @@ const TEST_DATA = [ // eslint-disable-li
         ],
         handler: "function() {\n" +
                  "  [native code]\n" +
                  "}",
       },
     ],
   },
   {
-    selector: "#arraysort",
+    selector: "#math-pow",
     expected: [
       {
         type: "click",
         filename: "[native code]",
         attributes: [
           "Bubbling",
           "DOM2",
         ],
-        handler: "function sort(, ) {\n" +
+        handler: "function pow(, ) {\n" +
                  "  [native code]\n" +
                  "}",
       },
     ],
   },
   {
     selector: "#handleEvent",
     expected: [
--- a/devtools/client/inspector/markup/test/doc_markup_events_04.html
+++ b/devtools/client/inspector/markup/test/doc_markup_events_04.html
@@ -2,17 +2,17 @@
 <html>
   <head>
     <meta charset="utf-8">
     <style>
     #constructed-function,
     #constructed-function-with-body-string,
     #multiple-assignment,
     #promise,
-    #arraysort,
+    #math-pow,
     #handleEvent {
       border: 1px solid #000;
       width: 200px;
       min-height: 1em;
       cursor: pointer;
     }
     </style>
     <script type="application/javascript">
@@ -39,18 +39,18 @@
           document.getElementById("multiple-assignment");
         multipleAssignmentNode.addEventListener("click", multipleAssignment);
 
         let promiseNode = document.getElementById("promise");
         new Promise((resolve, reject) => {
           promiseNode.addEventListener("click", resolve);
         });
 
-        let arraySortNode = document.getElementById("arraysort");
-        arraySortNode.addEventListener("click", Array.sort);
+        let mathPowNode = document.getElementById("math-pow");
+        mathPowNode.addEventListener("click", Math.pow);
 
         new HandleEvent();
 
         document.addEventListener("click", function(foo, bar) {
           alert("document event listener clicked");
         });
 
         document.documentElement.addEventListener("click", function(foo2, bar2) {
@@ -90,12 +90,12 @@
   <body onload="init();">
     <h1>Events test 4</h1>
     <div id="constructed-function">Constructed Function</div>
     <div id="constructed-function-with-body-string">
       Constructed Function with body string
     </div>
     <div id="multiple-assignment">Multiple Assignment</div>
     <div id="promise">Promise</div>
-    <div id="arraysort">Array.sort</div>
+    <div id="math-pow">Math.pow</div>
     <div id="handleEvent">HandleEvent</div>
   </body>
 </html>