blob: 0e787f77f5bf89edb6417994d587cb256f1c5504 [file] [log] [blame]
Tests that adding a new rule can be undone.
Text
After adding new rule:
[expanded]
element.style { ()
font-size: 12px;
[expanded]
div.foo { (inspector-stylesheet:2 -> inspector-stylesheet:2:1)
[expanded]
div.foo { (inspector-stylesheet:1 -> inspector-stylesheet:1:1)
[expanded]
div { (user agent stylesheet)
display: block;
===== Style sheet text: =====
div.foo {}
div.foo {}
=============================
After undo:
[expanded]
element.style { ()
color: red;
[expanded]
div.foo { (inspector-stylesheet:1 -> inspector-stylesheet:1:1)
[expanded]
div { (user agent stylesheet)
display: block;
===== Style sheet text: =====
div.foo {}
=============================
After redo:
[expanded]
element.style { ()
font-size: 12px;
[expanded]
div.foo { (inspector-stylesheet:3 -> inspector-stylesheet:3:1)
[expanded]
div.foo { (inspector-stylesheet:1 -> inspector-stylesheet:1:1)
[expanded]
div { (user agent stylesheet)
display: block;
===== Style sheet text: =====
div.foo {}
div.foo {}
=============================