Skip to content

Commit

Permalink
remove assert_* checks on undefined .commandDisabled attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
danbeam authored and sideshowbarker committed Dec 29, 2016
1 parent 278e3bc commit a95d02d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@

test(function(){
assert_false(d1.open);
assert_false(b0.commandDisabled);
d1.showModal();
this.add_cleanup(function() { d1.close(); });
assert_true(d1.open);
assert_true(b0.commandDisabled);
assert_equals(document.activeElement, b1);
});

Expand All @@ -80,23 +78,17 @@

test(function(){
assert_false(d3.open);
assert_false(b3.commandDisabled);
assert_false(d4.open);
assert_false(b4.commandDisabled);
assert_false(d5.open);
assert_false(b5.commandDisabled);
d3.showModal();
this.add_cleanup(function() { d3.close(); });
d4.showModal();
this.add_cleanup(function() { d4.close(); });
d5.showModal();
this.add_cleanup(function() { d5.close(); });
assert_true(d3.open);
assert_true(b3.commandDisabled);
assert_true(d4.open);
assert_true(b4.commandDisabled);
assert_true(d5.open);
assert_false(b5.commandDisabled);
}, "when opening multiple dialogs, only the newest one is non-inert");

test(function(){
Expand Down

0 comments on commit a95d02d

Please sign in to comment.