зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1558914 - Remove non-standard Array.sort from devtools test. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D36438 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
6ce38b36d0
Коммит
d572d1339c
|
@ -116,7 +116,7 @@ const TEST_DATA = [ // eslint-disable-line
|
|||
],
|
||||
},
|
||||
{
|
||||
selector: "#arraysort",
|
||||
selector: "#math-pow",
|
||||
expected: [
|
||||
{
|
||||
type: "click",
|
||||
|
@ -125,7 +125,7 @@ const TEST_DATA = [ // eslint-disable-line
|
|||
"Bubbling",
|
||||
"DOM2",
|
||||
],
|
||||
handler: "function sort(, ) {\n" +
|
||||
handler: "function pow(, ) {\n" +
|
||||
" [native code]\n" +
|
||||
"}",
|
||||
},
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#constructed-function-with-body-string,
|
||||
#multiple-assignment,
|
||||
#promise,
|
||||
#arraysort,
|
||||
#math-pow,
|
||||
#handleEvent {
|
||||
border: 1px solid #000;
|
||||
width: 200px;
|
||||
|
@ -44,8 +44,8 @@
|
|||
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();
|
||||
|
||||
|
@ -95,7 +95,7 @@
|
|||
</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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче