Bug 1171482 - wait for 2 distinct mutations in markup test;r=pbro
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 18 Oct 2017 13:07:45 +0200
changeset 387784 cd52c19b1fca01e2f8d49359256f9e743aac7695
parent 387783 9ac26a4888e412d0add1c5d9a43df3336e712751
child 387785 60ff8f8364959d64e9dfc838693f8ca3c9fc9913
push id96497
push userarchaeopteryx@coole-files.de
push dateTue, 24 Oct 2017 09:57:53 +0000
treeherdermozilla-inbound@7de3cc48b5b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1171482
milestone58.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 1171482 - wait for 2 distinct mutations in markup test;r=pbro MozReview-Commit-ID: Jn0dEr4qe6U
devtools/client/inspector/markup/test/browser_markup_tag_edit_08.js
--- a/devtools/client/inspector/markup/test/browser_markup_tag_edit_08.js
+++ b/devtools/client/inspector/markup/test/browser_markup_tag_edit_08.js
@@ -21,20 +21,23 @@ add_task(function* () {
   yield testModifyInlineStyleWithQuotes(inspector, testActor);
   yield testEditingAttributeWithMixedQuotes(inspector, testActor);
 });
 
 function* testCollapsedLongAttribute(inspector, testActor) {
   info("Try to modify the collapsed long attribute, making sure it expands.");
 
   info("Adding test attributes to the node");
-  let onMutated = inspector.once("markupmutation");
+  let onMutation = inspector.once("markupmutation");
   yield testActor.setAttribute("#node24", "class", "");
+  yield onMutation;
+
+  onMutation = inspector.once("markupmutation");
   yield testActor.setAttribute("#node24", "data-long", LONG_ATTRIBUTE);
-  yield onMutated;
+  yield onMutation;
 
   yield assertAttributes("#node24", {
     id: "node24",
     "class": "",
     "data-long": LONG_ATTRIBUTE
   }, testActor);
 
   let {editor} = yield focusNode("#node24", inspector);