Index: LayoutTests/fast/dom/HTMLDialogElement/dialog-canceling.html |
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/dialog-canceling.html b/LayoutTests/fast/dom/HTMLDialogElement/dialog-canceling.html |
index 8a9ef279e7914bcd70cc9da256f295d2e251a8e6..5c0d3984055391becf1a82007432317bde577c9f 100644 |
--- a/LayoutTests/fast/dom/HTMLDialogElement/dialog-canceling.html |
+++ b/LayoutTests/fast/dom/HTMLDialogElement/dialog-canceling.html |
@@ -63,36 +63,36 @@ function test() { |
return; |
debug('Top dialog event listener should prevent closing.'); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
shouldBeTrue('topDialog.open'); |
shouldBeTrue('bottomDialog.open'); |
debug('Top dialog should close.'); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
shouldBeFalse('topDialog.open'); |
shouldBeTrue('bottomDialog.open'); |
debug('Input should swallow Escape mechanism.'); |
swallowInput.focus(); |
- eventSender.keyDown("\x1B"); |
- eventSender.keyDown("\x1B"); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
+ eventSender.keyDown("escape"); |
+ eventSender.keyDown("escape"); |
shouldBeFalse('topDialog.open'); |
shouldBeTrue('bottomDialog.open'); |
normalInput.focus(); |
debug('Bottom dialog event listener should prevent closing.'); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
shouldBeFalse('topDialog.open'); |
shouldBeTrue('bottomDialog.open'); |
debug('Bottom dialog should close.'); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
shouldBeFalse('topDialog.open'); |
shouldBeFalse('bottomDialog.open'); |
debug('Pressing Escape now should do nothing.'); |
- eventSender.keyDown("\x1B"); |
+ eventSender.keyDown("escape"); |
shouldBeFalse('topDialog.open'); |
shouldBeFalse('bottomDialog.open'); |