4 <title>cr.ui.Command test
</title>
10 function testCommandDefaultPrevented() {
12 document
.addEventListener('canExecute', function(e
) {
14 assertFalse(e
.defaultPrevented
);
16 assertTrue(e
.defaultPrevented
);
19 cr
.ui
.decorate('command', cr
.ui
.Command
);
20 document
.querySelector('command').canExecuteChange();
21 assertEquals(1, calls
);