mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1271120 - Port test_composition_event_created_in_chrome.html from chrome to plain; r=masayuki
MozReview-Commit-ID: 5K2qv7JXAT4
This commit is contained in:
parent
7440afba28
commit
757c20701e
@ -12,7 +12,6 @@ skip-if = buildapp == 'mulet'
|
||||
[test_bug636465.xul]
|
||||
[test_bug780908.xul]
|
||||
[test_bug1102906.html]
|
||||
[test_composition_event_created_in_chrome.html]
|
||||
[test_contenteditable_text_input_handling.html]
|
||||
[test_dragdrop.html]
|
||||
skip-if = buildapp == 'mulet'
|
||||
|
@ -206,6 +206,7 @@ skip-if = toolkit == 'android'
|
||||
|
||||
[test_CF_HTML_clipboard.html]
|
||||
subsuite = clipboard
|
||||
[test_composition_event_created_in_chrome.html]
|
||||
[test_contenteditable_focus.html]
|
||||
[test_dom_input_event_on_htmleditor.html]
|
||||
skip-if = toolkit == 'android' # bug 1054087
|
||||
|
@ -1,12 +1,11 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
||||
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
|
||||
|
||||
<script type="application/javascript"
|
||||
src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript"
|
||||
src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -17,17 +16,16 @@
|
||||
|
||||
// In nsEditorEventListener, when listening event is not created with proper
|
||||
// event interface, it asserts the fact.
|
||||
SimpleTest.expectAssertions(2);
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var gInputElement = document.getElementById("input");
|
||||
|
||||
function getEditorIMESupport(aInputElement)
|
||||
{
|
||||
var editableElement = aInputElement.QueryInterface(Components.interfaces.nsIDOMNSEditableElement);
|
||||
var editableElement = SpecialPowers.wrap(aInputElement).QueryInterface(SpecialPowers.Ci.nsIDOMNSEditableElement);
|
||||
ok(editableElement, "The input element doesn't have nsIDOMNSEditableElement interface");
|
||||
ok(editableElement.editor, "There is no editor for the input element");
|
||||
var editorIMESupport = editableElement.editor.QueryInterface(Components.interfaces.nsIEditorIMESupport);
|
||||
var editorIMESupport = SpecialPowers.wrap(editableElement).editor.QueryInterface(SpecialPowers.Ci.nsIEditorIMESupport);
|
||||
ok(editorIMESupport, "The input element doesn't have nsIEditorIMESupport interface");
|
||||
return editorIMESupport;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user