blob: e29a1c8a00d064574fb8410d57a478ffd5f7eab1 [file] [log] [blame]
Tests that adding a new rule can be undone.
After adding new rule:
[expanded]
element.style { ()
font-size: 12px;
[expanded]
div.foo { (inspector-stylesheet:3 -> inspector-stylesheet:3:10)
[expanded]
div.foo { (inspector-stylesheet:1 -> inspector-stylesheet:1:10)
[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:10)
[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:10)
[expanded]
div.foo { (inspector-stylesheet:1 -> inspector-stylesheet:1:10)
[expanded]
div { (user agent stylesheet)
display: block;
===== Style sheet text: =====
div.foo {}
div.foo {}
=============================