From 0ddd00f1959c78ce37c14fef3c83401408fca3bf Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 25 Feb 2020 15:07:00 -0500 Subject: Issue #439 - Remove tests from toolkit/ --- toolkit/content/tests/chrome/.eslintrc.js | 7 - .../tests/chrome/RegisterUnregisterChrome.js | 161 ---- toolkit/content/tests/chrome/bug263683_window.xul | 210 ----- toolkit/content/tests/chrome/bug304188_window.xul | 94 --- toolkit/content/tests/chrome/bug331215_window.xul | 102 --- toolkit/content/tests/chrome/bug360437_window.xul | 120 --- toolkit/content/tests/chrome/bug366992_window.xul | 57 -- toolkit/content/tests/chrome/bug409624_window.xul | 98 --- toolkit/content/tests/chrome/bug429723_window.xul | 84 -- toolkit/content/tests/chrome/bug451540_window.xul | 248 ------ toolkit/content/tests/chrome/bug624329_window.xul | 22 - toolkit/content/tests/chrome/chrome.ini | 199 ----- .../content/tests/chrome/dialog_dialogfocus.xul | 57 -- .../tests/chrome/file_about_networking_wsh.py | 9 - .../chrome/file_autocomplete_with_composition.js | 540 ------------- .../tests/chrome/findbar_entireword_window.xul | 275 ------- .../content/tests/chrome/findbar_events_window.xul | 173 ----- toolkit/content/tests/chrome/findbar_window.xul | 756 ------------------ .../content/tests/chrome/frame_popup_anchor.xul | 82 -- .../tests/chrome/frame_popupremoving_frame.xul | 75 -- .../chrome/frame_subframe_origin_subframe1.xul | 43 -- .../chrome/frame_subframe_origin_subframe2.xul | 39 - .../content/tests/chrome/popup_childframe_node.xul | 2 - toolkit/content/tests/chrome/popup_trigger.js | 859 --------------------- toolkit/content/tests/chrome/rtlchrome/rtl.css | 2 - toolkit/content/tests/chrome/rtlchrome/rtl.dtd | 1 - .../content/tests/chrome/rtlchrome/rtl.manifest | 5 - .../tests/chrome/rtltest/content/dirtest.xul | 25 - .../tests/chrome/rtltest/righttoleft.manifest | 3 - .../tests/chrome/sample_entireword_latin1.html | 11 - .../tests/chrome/test_about_networking.html | 58 -- toolkit/content/tests/chrome/test_arrowpanel.xul | 327 -------- .../content/tests/chrome/test_autocomplete2.xul | 197 ----- .../content/tests/chrome/test_autocomplete3.xul | 188 ----- .../content/tests/chrome/test_autocomplete4.xul | 280 ------- .../content/tests/chrome/test_autocomplete5.xul | 152 ---- .../chrome/test_autocomplete_delayOnPaste.xul | 128 --- .../tests/chrome/test_autocomplete_emphasis.xul | 175 ----- .../tests/chrome/test_autocomplete_mac_caret.xul | 74 -- .../test_autocomplete_placehold_last_complete.xul | 309 -------- ...est_autocomplete_with_composition_on_input.html | 64 -- ...st_autocomplete_with_composition_on_textbox.xul | 124 --- toolkit/content/tests/chrome/test_browser_drop.xul | 38 - toolkit/content/tests/chrome/test_bug1048178.xul | 86 --- toolkit/content/tests/chrome/test_bug253481.xul | 90 --- toolkit/content/tests/chrome/test_bug263683.xul | 39 - toolkit/content/tests/chrome/test_bug304188.xul | 37 - toolkit/content/tests/chrome/test_bug331215.xul | 38 - toolkit/content/tests/chrome/test_bug360220.xul | 61 -- toolkit/content/tests/chrome/test_bug360437.xul | 40 - toolkit/content/tests/chrome/test_bug365773.xul | 67 -- toolkit/content/tests/chrome/test_bug366992.xul | 40 - toolkit/content/tests/chrome/test_bug382990.xul | 44 -- toolkit/content/tests/chrome/test_bug409624.xul | 39 - toolkit/content/tests/chrome/test_bug418874.xul | 71 -- toolkit/content/tests/chrome/test_bug429723.xul | 38 - toolkit/content/tests/chrome/test_bug437844.xul | 95 --- toolkit/content/tests/chrome/test_bug451540.xul | 39 - toolkit/content/tests/chrome/test_bug457632.xul | 178 ----- toolkit/content/tests/chrome/test_bug460942.xul | 42 - toolkit/content/tests/chrome/test_bug471776.xul | 47 -- toolkit/content/tests/chrome/test_bug509732.xul | 53 -- toolkit/content/tests/chrome/test_bug554279.xul | 39 - toolkit/content/tests/chrome/test_bug557987.xul | 76 -- toolkit/content/tests/chrome/test_bug562554.xul | 92 --- toolkit/content/tests/chrome/test_bug570192.xul | 53 -- toolkit/content/tests/chrome/test_bug585946.xul | 51 -- toolkit/content/tests/chrome/test_bug624329.xul | 160 ---- toolkit/content/tests/chrome/test_bug792324.xul | 75 -- toolkit/content/tests/chrome/test_button.xul | 71 -- toolkit/content/tests/chrome/test_chromemargin.xul | 36 - .../tests/chrome/test_closemenu_attribute.xul | 96 --- .../tests/chrome/test_colorpicker_popup.xul | 148 ---- .../content/tests/chrome/test_contextmenu_list.xul | 288 ------- toolkit/content/tests/chrome/test_cursorsnap.xul | 127 --- toolkit/content/tests/chrome/test_datepicker.xul | 415 ---------- toolkit/content/tests/chrome/test_deck.xul | 133 ---- toolkit/content/tests/chrome/test_dialogfocus.xul | 102 --- toolkit/content/tests/chrome/test_findbar.xul | 47 -- .../tests/chrome/test_findbar_entireword.xul | 41 - .../content/tests/chrome/test_findbar_events.xul | 39 - toolkit/content/tests/chrome/test_focus_anons.xul | 119 --- toolkit/content/tests/chrome/test_hiddenitems.xul | 89 --- toolkit/content/tests/chrome/test_hiddenpaging.xul | 161 ---- toolkit/content/tests/chrome/test_keys.xul | 29 - toolkit/content/tests/chrome/test_labelcontrol.xul | 44 -- toolkit/content/tests/chrome/test_largemenu.xul | 29 - toolkit/content/tests/chrome/test_menu.xul | 85 -- .../content/tests/chrome/test_menu_anchored.xul | 77 -- toolkit/content/tests/chrome/test_menu_hide.xul | 58 -- toolkit/content/tests/chrome/test_menuchecks.xul | 147 ---- .../content/tests/chrome/test_menuitem_blink.xul | 106 --- .../tests/chrome/test_menuitem_commands.xul | 104 --- toolkit/content/tests/chrome/test_menulist.xul | 314 -------- .../content/tests/chrome/test_menulist_keynav.xul | 272 ------- .../tests/chrome/test_menulist_null_value.xul | 96 --- .../content/tests/chrome/test_menulist_paging.xul | 163 ---- .../tests/chrome/test_menulist_position.xul | 97 --- toolkit/content/tests/chrome/test_mousescroll.xul | 274 ------- .../content/tests/chrome/test_notificationbox.xul | 522 ------------- toolkit/content/tests/chrome/test_panel.xul | 31 - toolkit/content/tests/chrome/test_panel_focus.xul | 38 - .../content/tests/chrome/test_panelfrommenu.xul | 118 --- toolkit/content/tests/chrome/test_popup_anchor.xul | 30 - .../tests/chrome/test_popup_anchoratrect.xul | 28 - .../content/tests/chrome/test_popup_attribute.xul | 28 - toolkit/content/tests/chrome/test_popup_button.xul | 28 - toolkit/content/tests/chrome/test_popup_coords.xul | 91 --- toolkit/content/tests/chrome/test_popup_keys.xul | 148 ---- .../tests/chrome/test_popup_moveToAnchor.xul | 84 -- .../tests/chrome/test_popup_preventdefault.xul | 76 -- .../chrome/test_popup_preventdefault_chrome.xul | 29 - .../content/tests/chrome/test_popup_recreate.xul | 83 -- toolkit/content/tests/chrome/test_popup_scaled.xul | 105 --- toolkit/content/tests/chrome/test_popup_tree.xul | 72 -- toolkit/content/tests/chrome/test_popuphidden.xul | 74 -- .../content/tests/chrome/test_popupincontent.xul | 131 ---- .../content/tests/chrome/test_popupremoving.xul | 165 ---- .../tests/chrome/test_popupremoving_frame.xul | 80 -- toolkit/content/tests/chrome/test_position.xul | 136 ---- toolkit/content/tests/chrome/test_preferences.xul | 533 ------------- .../tests/chrome/test_preferences_beforeaccept.xul | 55 -- .../test_preferences_onsyncfrompreference.xul | 62 -- .../content/tests/chrome/test_progressmeter.xul | 74 -- toolkit/content/tests/chrome/test_props.xul | 91 --- toolkit/content/tests/chrome/test_radio.xul | 66 -- .../tests/chrome/test_richlist_direction.xul | 138 ---- toolkit/content/tests/chrome/test_righttoleft.xul | 126 --- toolkit/content/tests/chrome/test_scale.xul | 277 ------- toolkit/content/tests/chrome/test_scaledrag.xul | 197 ----- .../tests/chrome/test_screenPersistence.xul | 63 -- toolkit/content/tests/chrome/test_scrollbar.xul | 137 ---- toolkit/content/tests/chrome/test_showcaret.xul | 101 --- toolkit/content/tests/chrome/test_sorttemplate.xul | 89 --- toolkit/content/tests/chrome/test_statusbar.xul | 42 - .../content/tests/chrome/test_subframe_origin.xul | 37 - toolkit/content/tests/chrome/test_tabbox.xul | 224 ------ toolkit/content/tests/chrome/test_tabindex.xul | 120 --- .../tests/chrome/test_textbox_dictionary.xul | 98 --- .../tests/chrome/test_textbox_emptytext.xul | 48 -- .../content/tests/chrome/test_textbox_number.xul | 353 --------- .../content/tests/chrome/test_textbox_search.xul | 170 ---- toolkit/content/tests/chrome/test_timepicker.xul | 207 ----- toolkit/content/tests/chrome/test_titlebar.xul | 35 - toolkit/content/tests/chrome/test_toolbar.xul | 227 ------ toolkit/content/tests/chrome/test_tooltip.xul | 28 - .../tests/chrome/test_tooltip_noautohide.xul | 57 -- toolkit/content/tests/chrome/test_tree.xul | 84 -- toolkit/content/tests/chrome/test_tree_hier.xul | 136 ---- .../content/tests/chrome/test_tree_hier_cell.xul | 136 ---- toolkit/content/tests/chrome/test_tree_single.xul | 110 --- toolkit/content/tests/chrome/test_tree_view.xul | 118 --- .../content/tests/chrome/window_browser_drop.xul | 242 ------ .../content/tests/chrome/window_chromemargin.xul | 73 -- .../tests/chrome/window_cursorsnap_dialog.xul | 104 --- .../tests/chrome/window_cursorsnap_wizard.xul | 111 --- toolkit/content/tests/chrome/window_keys.xul | 202 ----- toolkit/content/tests/chrome/window_largemenu.xul | 425 ---------- toolkit/content/tests/chrome/window_panel.xul | 312 -------- .../content/tests/chrome/window_panel_focus.xul | 132 ---- .../content/tests/chrome/window_popup_anchor.xul | 28 - .../tests/chrome/window_popup_anchoratrect.xul | 117 --- .../tests/chrome/window_popup_attribute.xul | 40 - .../content/tests/chrome/window_popup_button.xul | 41 - .../chrome/window_popup_preventdefault_chrome.xul | 113 --- .../content/tests/chrome/window_preferences.xul | 73 -- .../content/tests/chrome/window_preferences2.xul | 25 - .../content/tests/chrome/window_preferences3.xul | 74 -- .../chrome/window_preferences_beforeaccept.xul | 45 -- .../chrome/window_preferences_commandretarget.xul | 36 - .../window_preferences_onsyncfrompreference.xul | 42 - .../content/tests/chrome/window_screenPosSize.xul | 17 - toolkit/content/tests/chrome/window_showcaret.xul | 10 - .../tests/chrome/window_subframe_origin.xul | 42 - toolkit/content/tests/chrome/window_titlebar.xul | 223 ------ toolkit/content/tests/chrome/window_tooltip.xul | 311 -------- toolkit/content/tests/chrome/xul_selectcontrol.js | 390 ---------- 177 files changed, 21534 deletions(-) delete mode 100644 toolkit/content/tests/chrome/.eslintrc.js delete mode 100644 toolkit/content/tests/chrome/RegisterUnregisterChrome.js delete mode 100644 toolkit/content/tests/chrome/bug263683_window.xul delete mode 100644 toolkit/content/tests/chrome/bug304188_window.xul delete mode 100644 toolkit/content/tests/chrome/bug331215_window.xul delete mode 100644 toolkit/content/tests/chrome/bug360437_window.xul delete mode 100644 toolkit/content/tests/chrome/bug366992_window.xul delete mode 100644 toolkit/content/tests/chrome/bug409624_window.xul delete mode 100644 toolkit/content/tests/chrome/bug429723_window.xul delete mode 100644 toolkit/content/tests/chrome/bug451540_window.xul delete mode 100644 toolkit/content/tests/chrome/bug624329_window.xul delete mode 100644 toolkit/content/tests/chrome/chrome.ini delete mode 100644 toolkit/content/tests/chrome/dialog_dialogfocus.xul delete mode 100644 toolkit/content/tests/chrome/file_about_networking_wsh.py delete mode 100644 toolkit/content/tests/chrome/file_autocomplete_with_composition.js delete mode 100644 toolkit/content/tests/chrome/findbar_entireword_window.xul delete mode 100644 toolkit/content/tests/chrome/findbar_events_window.xul delete mode 100644 toolkit/content/tests/chrome/findbar_window.xul delete mode 100644 toolkit/content/tests/chrome/frame_popup_anchor.xul delete mode 100644 toolkit/content/tests/chrome/frame_popupremoving_frame.xul delete mode 100644 toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xul delete mode 100644 toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xul delete mode 100644 toolkit/content/tests/chrome/popup_childframe_node.xul delete mode 100644 toolkit/content/tests/chrome/popup_trigger.js delete mode 100644 toolkit/content/tests/chrome/rtlchrome/rtl.css delete mode 100644 toolkit/content/tests/chrome/rtlchrome/rtl.dtd delete mode 100644 toolkit/content/tests/chrome/rtlchrome/rtl.manifest delete mode 100644 toolkit/content/tests/chrome/rtltest/content/dirtest.xul delete mode 100644 toolkit/content/tests/chrome/rtltest/righttoleft.manifest delete mode 100644 toolkit/content/tests/chrome/sample_entireword_latin1.html delete mode 100644 toolkit/content/tests/chrome/test_about_networking.html delete mode 100644 toolkit/content/tests/chrome/test_arrowpanel.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete2.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete3.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete4.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete5.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_delayOnPaste.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_emphasis.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_mac_caret.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_placehold_last_complete.xul delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_with_composition_on_input.html delete mode 100644 toolkit/content/tests/chrome/test_autocomplete_with_composition_on_textbox.xul delete mode 100644 toolkit/content/tests/chrome/test_browser_drop.xul delete mode 100644 toolkit/content/tests/chrome/test_bug1048178.xul delete mode 100644 toolkit/content/tests/chrome/test_bug253481.xul delete mode 100644 toolkit/content/tests/chrome/test_bug263683.xul delete mode 100644 toolkit/content/tests/chrome/test_bug304188.xul delete mode 100644 toolkit/content/tests/chrome/test_bug331215.xul delete mode 100644 toolkit/content/tests/chrome/test_bug360220.xul delete mode 100644 toolkit/content/tests/chrome/test_bug360437.xul delete mode 100644 toolkit/content/tests/chrome/test_bug365773.xul delete mode 100644 toolkit/content/tests/chrome/test_bug366992.xul delete mode 100644 toolkit/content/tests/chrome/test_bug382990.xul delete mode 100644 toolkit/content/tests/chrome/test_bug409624.xul delete mode 100644 toolkit/content/tests/chrome/test_bug418874.xul delete mode 100644 toolkit/content/tests/chrome/test_bug429723.xul delete mode 100644 toolkit/content/tests/chrome/test_bug437844.xul delete mode 100644 toolkit/content/tests/chrome/test_bug451540.xul delete mode 100644 toolkit/content/tests/chrome/test_bug457632.xul delete mode 100644 toolkit/content/tests/chrome/test_bug460942.xul delete mode 100644 toolkit/content/tests/chrome/test_bug471776.xul delete mode 100644 toolkit/content/tests/chrome/test_bug509732.xul delete mode 100644 toolkit/content/tests/chrome/test_bug554279.xul delete mode 100644 toolkit/content/tests/chrome/test_bug557987.xul delete mode 100644 toolkit/content/tests/chrome/test_bug562554.xul delete mode 100644 toolkit/content/tests/chrome/test_bug570192.xul delete mode 100644 toolkit/content/tests/chrome/test_bug585946.xul delete mode 100644 toolkit/content/tests/chrome/test_bug624329.xul delete mode 100644 toolkit/content/tests/chrome/test_bug792324.xul delete mode 100644 toolkit/content/tests/chrome/test_button.xul delete mode 100644 toolkit/content/tests/chrome/test_chromemargin.xul delete mode 100644 toolkit/content/tests/chrome/test_closemenu_attribute.xul delete mode 100644 toolkit/content/tests/chrome/test_colorpicker_popup.xul delete mode 100644 toolkit/content/tests/chrome/test_contextmenu_list.xul delete mode 100644 toolkit/content/tests/chrome/test_cursorsnap.xul delete mode 100644 toolkit/content/tests/chrome/test_datepicker.xul delete mode 100644 toolkit/content/tests/chrome/test_deck.xul delete mode 100644 toolkit/content/tests/chrome/test_dialogfocus.xul delete mode 100644 toolkit/content/tests/chrome/test_findbar.xul delete mode 100644 toolkit/content/tests/chrome/test_findbar_entireword.xul delete mode 100644 toolkit/content/tests/chrome/test_findbar_events.xul delete mode 100644 toolkit/content/tests/chrome/test_focus_anons.xul delete mode 100644 toolkit/content/tests/chrome/test_hiddenitems.xul delete mode 100644 toolkit/content/tests/chrome/test_hiddenpaging.xul delete mode 100644 toolkit/content/tests/chrome/test_keys.xul delete mode 100644 toolkit/content/tests/chrome/test_labelcontrol.xul delete mode 100644 toolkit/content/tests/chrome/test_largemenu.xul delete mode 100644 toolkit/content/tests/chrome/test_menu.xul delete mode 100644 toolkit/content/tests/chrome/test_menu_anchored.xul delete mode 100644 toolkit/content/tests/chrome/test_menu_hide.xul delete mode 100644 toolkit/content/tests/chrome/test_menuchecks.xul delete mode 100644 toolkit/content/tests/chrome/test_menuitem_blink.xul delete mode 100644 toolkit/content/tests/chrome/test_menuitem_commands.xul delete mode 100644 toolkit/content/tests/chrome/test_menulist.xul delete mode 100644 toolkit/content/tests/chrome/test_menulist_keynav.xul delete mode 100644 toolkit/content/tests/chrome/test_menulist_null_value.xul delete mode 100644 toolkit/content/tests/chrome/test_menulist_paging.xul delete mode 100644 toolkit/content/tests/chrome/test_menulist_position.xul delete mode 100644 toolkit/content/tests/chrome/test_mousescroll.xul delete mode 100644 toolkit/content/tests/chrome/test_notificationbox.xul delete mode 100644 toolkit/content/tests/chrome/test_panel.xul delete mode 100644 toolkit/content/tests/chrome/test_panel_focus.xul delete mode 100644 toolkit/content/tests/chrome/test_panelfrommenu.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_anchor.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_anchoratrect.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_attribute.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_button.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_coords.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_keys.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_moveToAnchor.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_preventdefault.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_preventdefault_chrome.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_recreate.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_scaled.xul delete mode 100644 toolkit/content/tests/chrome/test_popup_tree.xul delete mode 100644 toolkit/content/tests/chrome/test_popuphidden.xul delete mode 100644 toolkit/content/tests/chrome/test_popupincontent.xul delete mode 100644 toolkit/content/tests/chrome/test_popupremoving.xul delete mode 100644 toolkit/content/tests/chrome/test_popupremoving_frame.xul delete mode 100644 toolkit/content/tests/chrome/test_position.xul delete mode 100644 toolkit/content/tests/chrome/test_preferences.xul delete mode 100644 toolkit/content/tests/chrome/test_preferences_beforeaccept.xul delete mode 100644 toolkit/content/tests/chrome/test_preferences_onsyncfrompreference.xul delete mode 100644 toolkit/content/tests/chrome/test_progressmeter.xul delete mode 100644 toolkit/content/tests/chrome/test_props.xul delete mode 100644 toolkit/content/tests/chrome/test_radio.xul delete mode 100644 toolkit/content/tests/chrome/test_richlist_direction.xul delete mode 100644 toolkit/content/tests/chrome/test_righttoleft.xul delete mode 100644 toolkit/content/tests/chrome/test_scale.xul delete mode 100644 toolkit/content/tests/chrome/test_scaledrag.xul delete mode 100644 toolkit/content/tests/chrome/test_screenPersistence.xul delete mode 100644 toolkit/content/tests/chrome/test_scrollbar.xul delete mode 100644 toolkit/content/tests/chrome/test_showcaret.xul delete mode 100644 toolkit/content/tests/chrome/test_sorttemplate.xul delete mode 100644 toolkit/content/tests/chrome/test_statusbar.xul delete mode 100644 toolkit/content/tests/chrome/test_subframe_origin.xul delete mode 100644 toolkit/content/tests/chrome/test_tabbox.xul delete mode 100644 toolkit/content/tests/chrome/test_tabindex.xul delete mode 100644 toolkit/content/tests/chrome/test_textbox_dictionary.xul delete mode 100644 toolkit/content/tests/chrome/test_textbox_emptytext.xul delete mode 100644 toolkit/content/tests/chrome/test_textbox_number.xul delete mode 100644 toolkit/content/tests/chrome/test_textbox_search.xul delete mode 100644 toolkit/content/tests/chrome/test_timepicker.xul delete mode 100644 toolkit/content/tests/chrome/test_titlebar.xul delete mode 100644 toolkit/content/tests/chrome/test_toolbar.xul delete mode 100644 toolkit/content/tests/chrome/test_tooltip.xul delete mode 100644 toolkit/content/tests/chrome/test_tooltip_noautohide.xul delete mode 100644 toolkit/content/tests/chrome/test_tree.xul delete mode 100644 toolkit/content/tests/chrome/test_tree_hier.xul delete mode 100644 toolkit/content/tests/chrome/test_tree_hier_cell.xul delete mode 100644 toolkit/content/tests/chrome/test_tree_single.xul delete mode 100644 toolkit/content/tests/chrome/test_tree_view.xul delete mode 100644 toolkit/content/tests/chrome/window_browser_drop.xul delete mode 100644 toolkit/content/tests/chrome/window_chromemargin.xul delete mode 100644 toolkit/content/tests/chrome/window_cursorsnap_dialog.xul delete mode 100644 toolkit/content/tests/chrome/window_cursorsnap_wizard.xul delete mode 100644 toolkit/content/tests/chrome/window_keys.xul delete mode 100644 toolkit/content/tests/chrome/window_largemenu.xul delete mode 100644 toolkit/content/tests/chrome/window_panel.xul delete mode 100644 toolkit/content/tests/chrome/window_panel_focus.xul delete mode 100644 toolkit/content/tests/chrome/window_popup_anchor.xul delete mode 100644 toolkit/content/tests/chrome/window_popup_anchoratrect.xul delete mode 100644 toolkit/content/tests/chrome/window_popup_attribute.xul delete mode 100644 toolkit/content/tests/chrome/window_popup_button.xul delete mode 100644 toolkit/content/tests/chrome/window_popup_preventdefault_chrome.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences2.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences3.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences_beforeaccept.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences_commandretarget.xul delete mode 100644 toolkit/content/tests/chrome/window_preferences_onsyncfrompreference.xul delete mode 100644 toolkit/content/tests/chrome/window_screenPosSize.xul delete mode 100644 toolkit/content/tests/chrome/window_showcaret.xul delete mode 100644 toolkit/content/tests/chrome/window_subframe_origin.xul delete mode 100644 toolkit/content/tests/chrome/window_titlebar.xul delete mode 100644 toolkit/content/tests/chrome/window_tooltip.xul delete mode 100644 toolkit/content/tests/chrome/xul_selectcontrol.js (limited to 'toolkit/content/tests/chrome') diff --git a/toolkit/content/tests/chrome/.eslintrc.js b/toolkit/content/tests/chrome/.eslintrc.js deleted file mode 100644 index 2c669d844..000000000 --- a/toolkit/content/tests/chrome/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = { - "extends": [ - "../../../../testing/mochitest/chrome.eslintrc.js" - ] -}; diff --git a/toolkit/content/tests/chrome/RegisterUnregisterChrome.js b/toolkit/content/tests/chrome/RegisterUnregisterChrome.js deleted file mode 100644 index 34f25d2f8..000000000 --- a/toolkit/content/tests/chrome/RegisterUnregisterChrome.js +++ /dev/null @@ -1,161 +0,0 @@ -/* This code is mostly copied from chrome/test/unit/head_crtestutils.js */ - -const NS_CHROME_MANIFESTS_FILE_LIST = "ChromeML"; -const XUL_CACHE_PREF = "nglayout.debug.disable_xul_cache"; - -var Cc = Components.classes; -var Ci = Components.interfaces; -var Cr = Components.results; - -var gDirSvc = Cc["@mozilla.org/file/directory_service;1"]. - getService(Ci.nsIDirectoryService).QueryInterface(Ci.nsIProperties); -var gChromeReg = Cc["@mozilla.org/chrome/chrome-registry;1"]. - getService(Ci.nsIXULChromeRegistry); -var gPrefs = Cc["@mozilla.org/preferences-service;1"]. - getService(Ci.nsIPrefBranch); - -// Create the temporary file in the profile, instead of in TmpD, because -// we know the mochitest harness kills off the profile when it's done. -function copyToTemporaryFile(f) -{ - let tmpd = gDirSvc.get("ProfD", Ci.nsIFile); - tmpf = tmpd.clone(); - tmpf.append("temp.manifest"); - tmpf.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0o600); - tmpf.remove(false); - f.copyTo(tmpd, tmpf.leafName); - return tmpf; -} - -function* dirIter(directory) -{ - var ioSvc = Cc["@mozilla.org/network/io-service;1"]. - getService(Ci.nsIIOService); - var testsDir = ioSvc.newURI(directory, null, null) - .QueryInterface(Ci.nsIFileURL).file; - - let en = testsDir.directoryEntries; - while (en.hasMoreElements()) { - let file = en.getNext(); - yield file.QueryInterface(Ci.nsIFile); - } -} - -function getParent(path) { - let lastSlash = path.lastIndexOf("/"); - if (lastSlash == -1) { - lastSlash = path.lastIndexOf("\\"); - if (lastSlash == -1) { - return ""; - } - return '/' + path.substring(0, lastSlash).replace(/\\/g, '/'); - } - return path.substring(0, lastSlash); -} - -function copyDirToTempProfile(path, subdirname) { - - if (subdirname === undefined) { - subdirname = "mochikit-tmp"; - } - - let tmpdir = gDirSvc.get("ProfD", Ci.nsIFile); - tmpdir.append(subdirname); - tmpdir.createUnique(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0o777); - - let rootDir = getParent(path); - if (rootDir == "") { - return tmpdir; - } - - // The SimpleTest directory is hidden - var files = Array.from(dirIter('file://' + rootDir)); - for (f in files) { - files[f].copyTo(tmpdir, ""); - } - return tmpdir; - -} - -function convertChromeURI(chromeURI) -{ - let uri = Cc["@mozilla.org/network/io-service;1"]. - getService(Ci.nsIIOService).newURI(chromeURI, null, null); - return gChromeReg.convertChromeURL(uri); -} - -function chromeURIToFile(chromeURI) -{ - var jar = getJar(chromeURI); - if (jar) { - var tmpDir = extractJarToTmp(jar); - let parts = chromeURI.split('/'); - if (parts[parts.length - 1] != '') { - tmpDir.append(parts[parts.length - 1]); - } - return tmpDir; - } - - return convertChromeURI(chromeURI). - QueryInterface(Ci.nsIFileURL).file; -} - -// Register a chrome manifest temporarily and return a function which un-does -// the registrarion when no longer needed. -function createManifestTemporarily(tempDir, manifestText) -{ - gPrefs.setBoolPref(XUL_CACHE_PREF, true); - - tempDir.append("temp.manifest"); - - let foStream = Cc["@mozilla.org/network/file-output-stream;1"] - .createInstance(Ci.nsIFileOutputStream); - foStream.init(tempDir, - 0x02 | 0x08 | 0x20, 0o664, 0); // write, create, truncate - foStream.write(manifestText, manifestText.length); - foStream.close(); - let tempfile = copyToTemporaryFile(tempDir); - - Components.manager.QueryInterface(Ci.nsIComponentRegistrar). - autoRegister(tempfile); - - gChromeReg.refreshSkins(); - - return function() { - tempfile.fileSize = 0; // truncate the manifest - gChromeReg.checkForNewChrome(); - gChromeReg.refreshSkins(); - gPrefs.clearUserPref(XUL_CACHE_PREF); - } -} - -// Register a chrome manifest temporarily and return a function which un-does -// the registrarion when no longer needed. -function registerManifestTemporarily(manifestURI) -{ - gPrefs.setBoolPref(XUL_CACHE_PREF, true); - - let file = chromeURIToFile(manifestURI); - - let tempfile = copyToTemporaryFile(file); - Components.manager.QueryInterface(Ci.nsIComponentRegistrar). - autoRegister(tempfile); - - gChromeReg.refreshSkins(); - - return function() { - tempfile.fileSize = 0; // truncate the manifest - gChromeReg.checkForNewChrome(); - gChromeReg.refreshSkins(); - gPrefs.clearUserPref(XUL_CACHE_PREF); - } -} - -function registerManifestPermanently(manifestURI) -{ - var chromepath = chromeURIToFile(manifestURI); - - Components.manager.QueryInterface(Ci.nsIComponentRegistrar). - autoRegister(chromepath); - return chromepath; -} diff --git a/toolkit/content/tests/chrome/bug263683_window.xul b/toolkit/content/tests/chrome/bug263683_window.xul deleted file mode 100644 index 46985a7ad..000000000 --- a/toolkit/content/tests/chrome/bug263683_window.xul +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug304188_window.xul b/toolkit/content/tests/chrome/bug304188_window.xul deleted file mode 100644 index 931fd5c73..000000000 --- a/toolkit/content/tests/chrome/bug304188_window.xul +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug331215_window.xul b/toolkit/content/tests/chrome/bug331215_window.xul deleted file mode 100644 index 757ce61b8..000000000 --- a/toolkit/content/tests/chrome/bug331215_window.xul +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug360437_window.xul b/toolkit/content/tests/chrome/bug360437_window.xul deleted file mode 100644 index 08498b58b..000000000 --- a/toolkit/content/tests/chrome/bug360437_window.xul +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug366992_window.xul b/toolkit/content/tests/chrome/bug366992_window.xul deleted file mode 100644 index a1e2ae1af..000000000 --- a/toolkit/content/tests/chrome/bug366992_window.xul +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug409624_window.xul b/toolkit/content/tests/chrome/bug409624_window.xul deleted file mode 100644 index 002cbe042..000000000 --- a/toolkit/content/tests/chrome/bug409624_window.xul +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug429723_window.xul b/toolkit/content/tests/chrome/bug429723_window.xul deleted file mode 100644 index 28439ae8e..000000000 --- a/toolkit/content/tests/chrome/bug429723_window.xul +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug451540_window.xul b/toolkit/content/tests/chrome/bug451540_window.xul deleted file mode 100644 index 3c08c95c9..000000000 --- a/toolkit/content/tests/chrome/bug451540_window.xul +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/bug624329_window.xul b/toolkit/content/tests/chrome/bug624329_window.xul deleted file mode 100644 index efca39d3b..000000000 --- a/toolkit/content/tests/chrome/bug624329_window.xul +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/chrome.ini b/toolkit/content/tests/chrome/chrome.ini deleted file mode 100644 index 2b9be4c8e..000000000 --- a/toolkit/content/tests/chrome/chrome.ini +++ /dev/null @@ -1,199 +0,0 @@ -[DEFAULT] -skip-if = os == 'android' -support-files = - ../widgets/popup_shared.js - ../widgets/tree_shared.js - RegisterUnregisterChrome.js - bug263683_window.xul - bug304188_window.xul - bug331215_window.xul - bug360437_window.xul - bug366992_window.xul - bug409624_window.xul - bug429723_window.xul - bug624329_window.xul - dialog_dialogfocus.xul - file_about_networking_wsh.py - file_autocomplete_with_composition.js - findbar_entireword_window.xul - findbar_events_window.xul - findbar_window.xul - frame_popup_anchor.xul - frame_popupremoving_frame.xul - frame_subframe_origin_subframe1.xul - frame_subframe_origin_subframe2.xul - popup_childframe_node.xul - popup_trigger.js - sample_entireword_latin1.html - window_browser_drop.xul - window_keys.xul - window_largemenu.xul - window_panel.xul - window_popup_anchor.xul - window_popup_anchoratrect.xul - window_popup_attribute.xul - window_popup_button.xul - window_popup_preventdefault_chrome.xul - window_preferences.xul - window_preferences2.xul - window_preferences3.xul - window_preferences_commandretarget.xul - window_screenPosSize.xul - window_showcaret.xul - window_subframe_origin.xul - window_titlebar.xul - window_tooltip.xul - xul_selectcontrol.js - rtlchrome/rtl.css - rtlchrome/rtl.dtd - rtlchrome/rtl.manifest - rtltest/righttoleft.manifest - rtltest/content/dirtest.xul - -[test_about_networking.html] -[test_arrowpanel.xul] -[test_autocomplete2.xul] -[test_autocomplete3.xul] -[test_autocomplete4.xul] -[test_autocomplete5.xul] -[test_autocomplete_delayOnPaste.xul] -subsuite = clipboard -[test_autocomplete_emphasis.xul] -[test_autocomplete_with_composition_on_input.html] -[test_autocomplete_with_composition_on_textbox.xul] -[test_autocomplete_placehold_last_complete.xul] -[test_browser_drop.xul] -[test_bug253481.xul] -subsuite = clipboard -[test_bug263683.xul] -[test_bug304188.xul] -[test_bug331215.xul] -[test_bug360220.xul] -[test_bug360437.xul] -skip-if = os == 'linux' # Bug 1264604 -[test_bug365773.xul] -[test_bug366992.xul] -[test_bug382990.xul] -[test_bug409624.xul] -[test_bug418874.xul] -[test_bug429723.xul] -[test_bug437844.xul] -[test_bug457632.xul] -[test_bug460942.xul] -[test_bug471776.xul] -[test_bug509732.xul] -[test_bug554279.xul] -[test_bug557987.xul] -[test_bug562554.xul] -[test_bug570192.xul] -[test_bug585946.xul] -[test_bug624329.xul] -skip-if = (os == 'mac' && os_version == '10.10') # Unexpectedly perma-passes on OSX 10.10 -[test_bug792324.xul] -[test_bug1048178.xul] -skip-if = toolkit == "cocoa" -[test_button.xul] -[test_closemenu_attribute.xul] -[test_colorpicker_popup.xul] -[test_contextmenu_list.xul] -[test_datepicker.xul] -[test_deck.xul] -[test_dialogfocus.xul] -[test_findbar.xul] -subsuite = clipboard -[test_findbar_entireword.xul] -[test_findbar_events.xul] -[test_focus_anons.xul] -[test_hiddenitems.xul] -[test_hiddenpaging.xul] -[test_keys.xul] -[test_labelcontrol.xul] -[test_largemenu.xul] -skip-if = os == 'linux' && !debug #Bug 1207174 -[test_menu.xul] -[test_menu_anchored.xul] -[test_menu_hide.xul] -[test_menuchecks.xul] -[test_menuitem_blink.xul] -[test_menuitem_commands.xul] -[test_menulist.xul] -[test_menulist_keynav.xul] -[test_menulist_null_value.xul] -[test_menulist_paging.xul] -[test_menulist_position.xul] -[test_mousescroll.xul] -[test_notificationbox.xul] -[test_panel.xul] -[test_panelfrommenu.xul] -[test_popup_anchor.xul] -[test_popup_anchoratrect.xul] -skip-if = os == 'linux' # 1167694 -[test_popup_attribute.xul] -skip-if = os == 'linux' && asan #Bug 1131634 -[test_popup_button.xul] -skip-if = os == 'linux' && asan # Bug 1281360 -[test_popup_coords.xul] -[test_popup_keys.xul] -[test_popup_moveToAnchor.xul] -[test_popup_preventdefault.xul] -[test_popup_preventdefault_chrome.xul] -[test_popup_recreate.xul] -[test_popup_scaled.xul] -[test_popup_tree.xul] -[test_popuphidden.xul] -[test_popupincontent.xul] -[test_popupremoving.xul] -[test_popupremoving_frame.xul] -[test_position.xul] -[test_preferences.xul] -[test_preferences_beforeaccept.xul] -support-files = window_preferences_beforeaccept.xul -[test_preferences_onsyncfrompreference.xul] -support-files = window_preferences_onsyncfrompreference.xul -[test_progressmeter.xul] -[test_props.xul] -[test_radio.xul] -[test_richlist_direction.xul] -[test_righttoleft.xul] -[test_scale.xul] -[test_scaledrag.xul] -[test_screenPersistence.xul] -[test_scrollbar.xul] -[test_showcaret.xul] -[test_sorttemplate.xul] -[test_statusbar.xul] -[test_subframe_origin.xul] -[test_tabbox.xul] -[test_tabindex.xul] -[test_textbox_dictionary.xul] -[test_textbox_emptytext.xul] -[test_textbox_number.xul] -[test_textbox_search.xul] -[test_timepicker.xul] -[test_titlebar.xul] -skip-if = os == "linux" -[test_toolbar.xul] -[test_tooltip.xul] -skip-if = (os == 'mac' && os_version == '10.10') # Bug 1141245, frequent timeouts on OSX 10.10 -[test_tooltip_noautohide.xul] -[test_tree.xul] -[test_tree_hier.xul] -[test_tree_hier_cell.xul] -[test_tree_single.xul] -[test_tree_view.xul] -# test_panel_focus.xul won't work if the Full Keyboard Access preference is set to -# textboxes and lists only, so skip this test on Mac -[test_panel_focus.xul] -support-files = window_panel_focus.xul -skip-if = toolkit == "cocoa" -[test_chromemargin.xul] -support-files = window_chromemargin.xul -skip-if = toolkit == "cocoa" -[test_bug451540.xul] -support-files = bug451540_window.xul -[test_autocomplete_mac_caret.xul] -skip-if = toolkit != "cocoa" -[test_cursorsnap.xul] -disabled = -#skip-if = os != "win" -support-files = window_cursorsnap_dialog.xul window_cursorsnap_wizard.xul diff --git a/toolkit/content/tests/chrome/dialog_dialogfocus.xul b/toolkit/content/tests/chrome/dialog_dialogfocus.xul deleted file mode 100644 index 770695ed3..000000000 --- a/toolkit/content/tests/chrome/dialog_dialogfocus.xul +++ /dev/null @@ -1,57 +0,0 @@ - - - - - diff --git a/toolkit/content/tests/chrome/file_about_networking_wsh.py b/toolkit/content/tests/chrome/file_about_networking_wsh.py deleted file mode 100644 index 17ad250e5..000000000 --- a/toolkit/content/tests/chrome/file_about_networking_wsh.py +++ /dev/null @@ -1,9 +0,0 @@ -from mod_pywebsocket import msgutil - -def web_socket_do_extra_handshake(request): - pass - -def web_socket_transfer_data(request): - while not request.client_terminated: - msgutil.receive_message(request) - diff --git a/toolkit/content/tests/chrome/file_autocomplete_with_composition.js b/toolkit/content/tests/chrome/file_autocomplete_with_composition.js deleted file mode 100644 index 881e772ad..000000000 --- a/toolkit/content/tests/chrome/file_autocomplete_with_composition.js +++ /dev/null @@ -1,540 +0,0 @@ -// nsDoTestsForAutoCompleteWithComposition tests autocomplete with composition. -// Users must include SimpleTest.js and EventUtils.js. - -function waitForCondition(condition, nextTest) { - var tries = 0; - var interval = setInterval(function() { - if (condition() || tries >= 30) { - moveOn(); - } - tries++; - }, 100); - var moveOn = function() { clearInterval(interval); nextTest(); }; -} - -function nsDoTestsForAutoCompleteWithComposition(aDescription, - aWindow, - aTarget, - aAutoCompleteController, - aIsFunc, - aGetTargetValueFunc, - aOnFinishFunc) -{ - this._description = aDescription; - this._window = aWindow; - this._target = aTarget; - this._controller = aAutoCompleteController; - - this._is = aIsFunc; - this._getTargetValue = aGetTargetValueFunc; - this._onFinish = aOnFinishFunc; - - this._target.focus(); - - this._DefaultCompleteDefaultIndex = - this._controller.input.completeDefaultIndex; - - this._doTests(); -} - -nsDoTestsForAutoCompleteWithComposition.prototype = { - _window: null, - _target: null, - _controller: null, - _DefaultCompleteDefaultIndex: false, - _description: "", - - _is: null, - _getTargetValue: function () { return "not initialized"; }, - _onFinish: null, - - _doTests: function () - { - if (++this._testingIndex == this._tests.length) { - this._controller.input.completeDefaultIndex = - this._DefaultCompleteDefaultIndex; - this._onFinish(); - return; - } - - var test = this._tests[this._testingIndex]; - if (this._controller.input.completeDefaultIndex != test.completeDefaultIndex) { - this._controller.input.completeDefaultIndex = test.completeDefaultIndex; - } - test.execute(this._window); - - waitForCondition(() => { - return this._controller.searchStatus >= - Components.interfaces.nsIAutoCompleteController.STATUS_COMPLETE_NO_MATCH; - }, - this._checkResult.bind(this)); - }, - - _checkResult: function () - { - var test = this._tests[this._testingIndex]; - this._is(this._getTargetValue(), test.value, - this._description + ", " + test.description + ": value"); - this._is(this._controller.searchString, test.searchString, - this._description + ", " + test.description +": searchString"); - this._is(this._controller.input.popupOpen, test.popup, - this._description + ", " + test.description + ": popupOpen"); - this._doTests(); - }, - - _testingIndex: -1, - _tests: [ - // Simple composition when popup hasn't been shown. - // The autocomplete popup should not be shown during composition, but - // after compositionend, the popup should be shown. - { description: "compositionstart shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "M", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "M", code: "KeyM", keyCode: KeyboardEvent.DOM_VK_M, - shiftKey: true }, - }, aWindow); - }, popup: false, value: "M", searchString: "" - }, - { description: "modifying composition string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "Mo", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "o", code: "KeyO", keyCode: KeyboardEvent.DOM_VK_O }, - }, aWindow); - }, popup: false, value: "Mo", searchString: "" - }, - { description: "compositionend should open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Enter", code: "Enter" } }, aWindow); - }, popup: true, value: "Mo", searchString: "Mo" - }, - // If composition starts when popup is shown, the compositionstart event - // should cause closing the popup. - { description: "compositionstart should close the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "z", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "z", code: "KeyZ", keyCode: KeyboardEvent.DOM_VK_Z }, - }, aWindow); - }, popup: false, value: "Moz", searchString: "Mo" - }, - { description: "modifying composition string shouldn't reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "zi", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "i", code: "KeyI", keyCode: KeyboardEvent.DOM_VK_I }, - }, aWindow); - }, popup: false, value: "Mozi", searchString: "Mo" - }, - { description: "compositionend should research the result and open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Enter", code: "Enter" } }, aWindow); - }, popup: true, value: "Mozi", searchString: "Mozi" - }, - // If composition is cancelled, the value shouldn't be changed. - { description: "compositionstart should reclose the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "l", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "l", code: "KeyL", keyCode: KeyboardEvent.DOM_VK_L }, - }, aWindow); - }, popup: false, value: "Mozil", searchString: "Mozi" - }, - { description: "modifying composition string shouldn't reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "ll", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "l", code: "KeyL", keyCode: KeyboardEvent.DOM_VK_L }, - }, aWindow); - }, popup: false, value: "Mozill", searchString: "Mozi" - }, - { description: "modifying composition string to empty string shouldn't reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "", - "clauses": - [ - { "length": 0, "attr": 0 } - ] - }, - "caret": { "start": 0, "length": 0 } - }, aWindow); - }, popup: false, value: "Mozi", searchString: "Mozi" - }, - { description: "cancled compositionend should reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommit", data: "", - key: { key: "KEY_Escape", code: "Escape" } }, aWindow); - }, popup: true, value: "Mozi", searchString: "Mozi" - }, - // But if composition replaces some characters and canceled, the search - // string should be the latest value. - { description: "compositionstart with selected string should close the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("VK_LEFT", { shiftKey: true }, aWindow); - synthesizeKey("VK_LEFT", { shiftKey: true }, aWindow); - synthesizeCompositionChange( - { "composition": - { "string": "z", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "z", code: "KeyZ", keyCode: KeyboardEvent.DOM_VK_Z }, - }, aWindow); - }, popup: false, value: "Moz", searchString: "Mozi" - }, - { description: "modifying composition string shouldn't reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "zi", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "i", code: "KeyI", keyCode: KeyboardEvent.DOM_VK_I }, - }, aWindow); - }, popup: false, value: "Mozi", searchString: "Mozi" - }, - { description: "modifying composition string to empty string shouldn't reopen the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "", - "clauses": - [ - { "length": 0, "attr": 0 } - ] - }, - "caret": { "start": 0, "length": 0 } - }, aWindow); - }, popup: false, value: "Mo", searchString: "Mozi" - }, - { description: "canceled compositionend should search the result with the latest value", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Escape", code: "Escape" } }, aWindow); - }, popup: true, value: "Mo", searchString: "Mo" - }, - // If all characters are removed, the popup should be closed. - { description: "the value becomes empty by backspace, the popup should be closed", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - }, popup: false, value: "", searchString: "" - }, - // composition which is canceled shouldn't cause opening the popup. - { description: "compositionstart shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "M", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "m", code: "KeyM", keyCode: KeyboardEvent.DOM_VK_M, - shiftKey: true }, - }, aWindow); - }, popup: false, value: "M", searchString: "" - }, - { description: "modifying composition string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "Mo", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "o", code: "KeyO", keyCode: KeyboardEvent.DOM_VK_O }, - }, aWindow); - }, popup: false, value: "Mo", searchString: "" - }, - { description: "modifying composition string to empty string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "", - "clauses": - [ - { "length": 0, "attr": 0 } - ] - }, - "caret": { "start": 0, "length": 0 } - }, aWindow); - }, popup: false, value: "", searchString: "" - }, - { description: "canceled compositionend shouldn't open the popup if it was closed", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Escape", code: "Escape" } }, aWindow); - }, popup: false, value: "", searchString: "" - }, - // Down key should open the popup even if the editor is empty. - { description: "DOWN key should open the popup even if the value is empty", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("VK_DOWN", {}, aWindow); - }, popup: true, value: "", searchString: "" - }, - // If popup is open at starting composition, the popup should be reopened - // after composition anyway. - { description: "compositionstart shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "M", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "M", code: "KeyM", keyCode: KeyboardEvent.DOM_VK_M, - shiftKey: true }, - }, aWindow); - }, popup: false, value: "M", searchString: "" - }, - { description: "modifying composition string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "Mo", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "o", code: "KeyO", keyCode: KeyboardEvent.DOM_VK_O }, - }, aWindow); - }, popup: false, value: "Mo", searchString: "" - }, - { description: "modifying composition string to empty string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "", - "clauses": - [ - { "length": 0, "attr": 0 } - ] - }, - "caret": { "start": 0, "length": 0 } - }, aWindow); - }, popup: false, value: "", searchString: "" - }, - { description: "canceled compositionend should open the popup if it was opened", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Escape", code: "Escape" } }, aWindow); - }, popup: true, value: "", searchString: "" - }, - // Type normally, and hit escape, the popup should be closed. - { description: "ESCAPE should close the popup after typing something", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("M", { shiftKey: true }, aWindow); - synthesizeKey("o", { shiftKey: true }, aWindow); - synthesizeKey("VK_ESCAPE", {}, aWindow); - }, popup: false, value: "Mo", searchString: "Mo" - }, - // Even if the popup is closed, composition which is canceled should open - // the popup if the value isn't empty. - // XXX This might not be good behavior, but anyway, this is minor issue... - { description: "compositionstart shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "z", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "z", code: "KeyZ", keyCode: KeyboardEvent.DOM_VK_Z }, - }, aWindow); - }, popup: false, value: "Moz", searchString: "Mo" - }, - { description: "modifying composition string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "zi", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "i", code: "KeyI", keyCode: KeyboardEvent.DOM_VK_I }, - }, aWindow); - }, popup: false, value: "Mozi", searchString: "Mo" - }, - { description: "modifying composition string to empty string shouldn't open the popup", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "", - "clauses": - [ - { "length": 0, "attr": 0 } - ] - }, - "caret": { "start": 0, "length": 0 } - }, aWindow); - }, popup: false, value: "Mo", searchString: "Mo" - }, - { description: "canceled compositionend shouldn't open the popup if the popup was closed", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Escape", code: "Escape" } }, aWindow); - }, popup: true, value: "Mo", searchString: "Mo" - }, - // House keeping... - { description: "house keeping for next tests", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - }, popup: false, value: "", searchString: "" - }, - // Testing for nsIAutoCompleteInput.completeDefaultIndex being true. - { description: "compositionstart shouldn't open the popup (completeDefaultIndex is true)", - completeDefaultIndex: true, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "M", - "clauses": - [ - { "length": 1, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 1, "length": 0 }, - "key": { key: "M", code: "KeyM", keyCode: KeyboardEvent.DOM_VK_M, - shiftKey: true }, - }, aWindow); - }, popup: false, value: "M", searchString: "" - }, - { description: "modifying composition string shouldn't open the popup (completeDefaultIndex is true)", - completeDefaultIndex: true, - execute: function (aWindow) { - synthesizeCompositionChange( - { "composition": - { "string": "Mo", - "clauses": - [ - { "length": 2, "attr": COMPOSITION_ATTR_RAW_CLAUSE } - ] - }, - "caret": { "start": 2, "length": 0 }, - "key": { key: "o", code: "KeyO", keyCode: KeyboardEvent.DOM_VK_O }, - }, aWindow); - }, popup: false, value: "Mo", searchString: "" - }, - { description: "compositionend should open the popup (completeDefaultIndex is true)", - completeDefaultIndex: true, - execute: function (aWindow) { - synthesizeComposition({ type: "compositioncommitasis", - key: { key: "KEY_Enter", code: "Enter" } }, aWindow); - }, popup: true, value: "Mozilla", searchString: "Mo" - }, - // House keeping... - { description: "house keeping for next tests", - completeDefaultIndex: false, - execute: function (aWindow) { - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - synthesizeKey("VK_BACK_SPACE", {}, aWindow); - }, popup: false, value: "", searchString: "" - } - ] -}; diff --git a/toolkit/content/tests/chrome/findbar_entireword_window.xul b/toolkit/content/tests/chrome/findbar_entireword_window.xul deleted file mode 100644 index f0da61081..000000000 --- a/toolkit/content/tests/chrome/findbar_entireword_window.xul +++ /dev/null @@ -1,275 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/findbar_events_window.xul b/toolkit/content/tests/chrome/findbar_events_window.xul deleted file mode 100644 index 2bfc52c14..000000000 --- a/toolkit/content/tests/chrome/findbar_events_window.xul +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/findbar_window.xul b/toolkit/content/tests/chrome/findbar_window.xul deleted file mode 100644 index f17f760fe..000000000 --- a/toolkit/content/tests/chrome/findbar_window.xul +++ /dev/null @@ -1,756 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/frame_popup_anchor.xul b/toolkit/content/tests/chrome/frame_popup_anchor.xul deleted file mode 100644 index be6254ce0..000000000 --- a/toolkit/content/tests/chrome/frame_popup_anchor.xul +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - diff --git a/toolkit/content/tests/chrome/frame_popupremoving_frame.xul b/toolkit/content/tests/chrome/frame_popupremoving_frame.xul deleted file mode 100644 index e8f00ce7a..000000000 --- a/toolkit/content/tests/chrome/frame_popupremoving_frame.xul +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xul b/toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xul deleted file mode 100644 index c85083cb7..000000000 --- a/toolkit/content/tests/chrome/frame_subframe_origin_subframe1.xul +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - diff --git a/toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xul b/toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xul deleted file mode 100644 index 92ef64b89..000000000 --- a/toolkit/content/tests/chrome/frame_subframe_origin_subframe2.xul +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - diff --git a/toolkit/content/tests/chrome/popup_childframe_node.xul b/toolkit/content/tests/chrome/popup_childframe_node.xul deleted file mode 100644 index 512f5f8c2..000000000 --- a/toolkit/content/tests/chrome/popup_childframe_node.xul +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/toolkit/content/tests/chrome/popup_trigger.js b/toolkit/content/tests/chrome/popup_trigger.js deleted file mode 100644 index 920d4d070..000000000 --- a/toolkit/content/tests/chrome/popup_trigger.js +++ /dev/null @@ -1,859 +0,0 @@ -var gMenuPopup = null; -var gTrigger = null; -var gIsMenu = false; -var gScreenX = -1, gScreenY = -1; -var gCachedEvent = null; -var gCachedEvent2 = null; - -function cacheEvent(modifiers) -{ - var cachedEvent = null; - - var mouseFn = function(event) { - cachedEvent = event; - } - - window.addEventListener("mousedown", mouseFn, false); - synthesizeMouse(document.documentElement, 0, 0, modifiers); - window.removeEventListener("mousedown", mouseFn, false); - - return cachedEvent; -} - -function runTests() -{ - if (screen.height < 768) { - ok(false, "popup tests are likely to fail for screen heights less than 768 pixels"); - } - - gMenuPopup = document.getElementById("thepopup"); - gTrigger = document.getElementById("trigger"); - - gIsMenu = gTrigger.boxObject instanceof MenuBoxObject; - - // a hacky way to get the screen position of the document. Cache the event - // so that we can use it in calls to openPopup. - gCachedEvent = cacheEvent({ shiftKey: true }); - gScreenX = gCachedEvent.screenX; - gScreenY = gCachedEvent.screenY; - gCachedEvent2 = cacheEvent({ altKey: true, ctrlKey: true, shiftKey: true, metaKey: true }); - - startPopupTests(popupTests); -} - -var popupTests = [ -{ - testname: "mouse click on trigger", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function() { - // for menus, no trigger will be set. For non-menus using the popup - // attribute, the trigger will be set to the node with the popup attribute - gExpectedTriggerNode = gIsMenu ? "notset" : gTrigger; - synthesizeMouse(gTrigger, 4, 4, { }); - }, - result: function (testname) { - gExpectedTriggerNode = null; - // menus are the anchor but non-menus are opened at screen coordinates - is(gMenuPopup.anchorNode, gIsMenu ? gTrigger : null, testname + " anchorNode"); - // menus are opened internally, but non-menus have a mouse event which - // triggered them - is(gMenuPopup.triggerNode, gIsMenu ? null : gTrigger, testname + " triggerNode"); - is(document.popupNode, gIsMenu ? null : gTrigger, testname + " document.popupNode"); - is(document.tooltipNode, null, testname + " document.tooltipNode"); - // check to ensure the popup node for a different document isn't used - if (window.opener) - is(window.opener.document.popupNode, null, testname + " opener.document.popupNode"); - - // this will be used in some tests to ensure the size doesn't change - var popuprect = gMenuPopup.getBoundingClientRect(); - gPopupWidth = Math.round(popuprect.width); - gPopupHeight = Math.round(popuprect.height); - - checkActive(gMenuPopup, "", testname); - checkOpen("trigger", testname); - // if a menu, the popup should be opened underneath the menu in the - // 'after_start' position, otherwise it is opened at the mouse position - if (gIsMenu) - compareEdge(gTrigger, gMenuPopup, "after_start", 0, 0, testname); - } -}, -{ - // check that pressing cursor down while there is no selection - // highlights the first item - testname: "cursor down no selection", - events: [ "DOMMenuItemActive item1" ], - test: function() { synthesizeKey("VK_DOWN", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item1", testname); } -}, -{ - // check that pressing cursor up wraps and highlights the last item - testname: "cursor up wrap", - events: [ "DOMMenuItemInactive item1", "DOMMenuItemActive last" ], - test: function() { synthesizeKey("VK_UP", { }); }, - result: function(testname) { - checkActive(gMenuPopup, "last", testname); - } -}, -{ - // check that pressing cursor down wraps and highlights the first item - testname: "cursor down wrap", - events: [ "DOMMenuItemInactive last", "DOMMenuItemActive item1" ], - test: function() { synthesizeKey("VK_DOWN", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item1", testname); } -}, -{ - // check that pressing cursor down highlights the second item - testname: "cursor down", - events: [ "DOMMenuItemInactive item1", "DOMMenuItemActive item2" ], - test: function() { synthesizeKey("VK_DOWN", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item2", testname); } -}, -{ - // check that pressing cursor up highlights the second item - testname: "cursor up", - events: [ "DOMMenuItemInactive item2", "DOMMenuItemActive item1" ], - test: function() { synthesizeKey("VK_UP", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item1", testname); } -}, -{ - // cursor left should not do anything - testname: "cursor left", - test: function() { synthesizeKey("VK_LEFT", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item1", testname); } -}, -{ - // cursor right should not do anything - testname: "cursor right", - test: function() { synthesizeKey("VK_RIGHT", { }); }, - result: function(testname) { checkActive(gMenuPopup, "item1", testname); } -}, -{ - // check cursor down when a disabled item exists in the menu - testname: "cursor down disabled", - events: function() { - // On Windows, disabled items are included when navigating, but on - // other platforms, disabled items are skipped over - if (navigator.platform.indexOf("Win") == 0) { - return [ "DOMMenuItemInactive item1", "DOMMenuItemActive item2" ]; - } - return [ "DOMMenuItemInactive item1", "DOMMenuItemActive amenu" ]; - }, - test: function() { - document.getElementById("item2").disabled = true; - synthesizeKey("VK_DOWN", { }); - } -}, -{ - // check cursor up when a disabled item exists in the menu - testname: "cursor up disabled", - events: function() { - if (navigator.platform.indexOf("Win") == 0) { - return [ "DOMMenuItemInactive item2", "DOMMenuItemActive amenu", - "DOMMenuItemInactive amenu", "DOMMenuItemActive item2", - "DOMMenuItemInactive item2", "DOMMenuItemActive item1" ]; - } - return [ "DOMMenuItemInactive amenu", "DOMMenuItemActive item1" ]; - }, - test: function() { - if (navigator.platform.indexOf("Win") == 0) - synthesizeKey("VK_DOWN", { }); - synthesizeKey("VK_UP", { }); - if (navigator.platform.indexOf("Win") == 0) - synthesizeKey("VK_UP", { }); - } -}, -{ - testname: "mouse click outside", - events: [ "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuItemInactive item1", "DOMMenuInactive thepopup" ], - test: function() { - gMenuPopup.hidePopup(); - // XXXndeakin event simulation fires events outside of the platform specific - // widget code so the popup capturing isn't handled. Thus, the menu won't - // rollup this way. - // synthesizeMouse(gTrigger, 0, -12, { }); - }, - result: function(testname, step) { - is(gMenuPopup.anchorNode, null, testname + " anchorNode"); - is(gMenuPopup.triggerNode, null, testname + " triggerNode"); - is(document.popupNode, null, testname + " document.popupNode"); - checkClosed("trigger", testname); - } -}, -{ - // these tests check to ensure that passing an anchor and position - // puts the popup in the right place - testname: "open popup anchored", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap", - "topleft topleft", "topcenter topleft", "topright topleft", - "leftcenter topright", "rightcenter topright", - "bottomleft bottomleft", "bottomcenter bottomleft", "bottomright bottomleft", - "topleft bottomright", "bottomcenter bottomright", "rightcenter topright"], - test: function(testname, step) { - gExpectedTriggerNode = "notset"; - gMenuPopup.openPopup(gTrigger, step, 0, 0, false, false); - }, - result: function(testname, step) { - // no triggerNode because it was opened without passing an event - gExpectedTriggerNode = null; - is(gMenuPopup.anchorNode, gTrigger, testname + " anchorNode"); - is(gMenuPopup.triggerNode, null, testname + " triggerNode"); - is(document.popupNode, null, testname + " document.popupNode"); - compareEdge(gTrigger, gMenuPopup, step, 0, 0, testname); - } -}, -{ - // these tests check the same but with a 10 pixel margin on the popup - testname: "open popup anchored with margin", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap", - "topleft topleft", "topcenter topleft", "topright topleft", - "leftcenter topright", "rightcenter topright", - "bottomleft bottomleft", "bottomcenter bottomleft", "bottomright bottomleft", - "topleft bottomright", "bottomcenter bottomright", "rightcenter topright"], - test: function(testname, step) { - gMenuPopup.setAttribute("style", "margin: 10px;"); - gMenuPopup.openPopup(gTrigger, step, 0, 0, false, false); - }, - result: function(testname, step) { - var rightmod = step == "before_end" || step == "after_end" || - step == "start_before" || step == "start_after" || - step.match(/topright$/) || step.match(/bottomright$/); - var bottommod = step == "before_start" || step == "before_end" || - step == "start_after" || step == "end_after" || - step.match(/bottomleft$/) || step.match(/bottomright$/); - compareEdge(gTrigger, gMenuPopup, step, rightmod ? -10 : 10, bottommod ? -10 : 10, testname); - gMenuPopup.removeAttribute("style"); - } -}, -{ - // these tests check the same but with a -8 pixel margin on the popup - testname: "open popup anchored with negative margin", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap"], - test: function(testname, step) { - gMenuPopup.setAttribute("style", "margin: -8px;"); - gMenuPopup.openPopup(gTrigger, step, 0, 0, false, false); - }, - result: function(testname, step) { - var rightmod = step == "before_end" || step == "after_end" || - step == "start_before" || step == "start_after"; - var bottommod = step == "before_start" || step == "before_end" || - step == "start_after" || step == "end_after"; - compareEdge(gTrigger, gMenuPopup, step, rightmod ? 8 : -8, bottommod ? 8 : -8, testname); - gMenuPopup.removeAttribute("style"); - } -}, - { - testname: "open popup with large positive margin", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap"], - test: function(testname, step) { - gMenuPopup.setAttribute("style", "margin: 1000px;"); - gMenuPopup.openPopup(gTrigger, step, 0, 0, false, false); - }, - result: function(testname, step) { - var popuprect = gMenuPopup.getBoundingClientRect(); - // as there is more room on the 'end' or 'after' side, popups will always - // appear on the right or bottom corners, depending on which side they are - // allowed to be flipped by. - var expectedleft = step == "before_end" || step == "after_end" ? - 0 : Math.round(window.innerWidth - gPopupWidth); - var expectedtop = step == "start_after" || step == "end_after" ? - 0 : Math.round(window.innerHeight - gPopupHeight); - is(Math.round(popuprect.left), expectedleft, testname + " x position " + step); - is(Math.round(popuprect.top), expectedtop, testname + " y position " + step); - gMenuPopup.removeAttribute("style"); - } -}, -{ - testname: "open popup with large negative margin", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap"], - test: function(testname, step) { - gMenuPopup.setAttribute("style", "margin: -1000px;"); - gMenuPopup.openPopup(gTrigger, step, 0, 0, false, false); - }, - result: function(testname, step) { - var popuprect = gMenuPopup.getBoundingClientRect(); - // using negative margins causes the reverse of positive margins, and - // popups will appear on the left or top corners. - var expectedleft = step == "before_end" || step == "after_end" ? - Math.round(window.innerWidth - gPopupWidth) : 0; - var expectedtop = step == "start_after" || step == "end_after" ? - Math.round(window.innerHeight - gPopupHeight) : 0; - is(Math.round(popuprect.left), expectedleft, testname + " x position " + step); - is(Math.round(popuprect.top), expectedtop, testname + " y position " + step); - gMenuPopup.removeAttribute("style"); - } -}, -{ - testname: "popup with unknown step", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function() { - gMenuPopup.openPopup(gTrigger, "other", 0, 0, false, false); - }, - result: function (testname) { - var triggerrect = gMenuPopup.getBoundingClientRect(); - var popuprect = gMenuPopup.getBoundingClientRect(); - is(Math.round(popuprect.left), triggerrect.left, testname + " x position "); - is(Math.round(popuprect.top), triggerrect.top, testname + " y position "); - } -}, -{ - // these tests check to ensure that the position attribute can be used - // to set the position of a popup instead of passing it as an argument - testname: "open popup anchored with attribute", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: ["before_start", "before_end", "after_start", "after_end", - "start_before", "start_after", "end_before", "end_after", "after_pointer", "overlap", - "topcenter topleft", "topright bottomright", "leftcenter topright"], - test: function(testname, step) { - gMenuPopup.setAttribute("position", step); - gMenuPopup.openPopup(gTrigger, "", 0, 0, false, false); - }, - result: function(testname, step) { compareEdge(gTrigger, gMenuPopup, step, 0, 0, testname); } -}, -{ - // this test checks to ensure that the attributes override flag to openPopup - // can be used to override the popup's position. This test also passes an - // event to openPopup to check the trigger node. - testname: "open popup anchored with override", - events: [ "popupshowing thepopup 0010", "popupshown thepopup" ], - test: function(testname, step) { - // attribute overrides the position passed in - gMenuPopup.setAttribute("position", "end_after"); - gExpectedTriggerNode = gCachedEvent.target; - gMenuPopup.openPopup(gTrigger, "before_start", 0, 0, false, true, gCachedEvent); - }, - result: function(testname, step) { - gExpectedTriggerNode = null; - is(gMenuPopup.anchorNode, gTrigger, testname + " anchorNode"); - is(gMenuPopup.triggerNode, gCachedEvent.target, testname + " triggerNode"); - is(document.popupNode, gCachedEvent.target, testname + " document.popupNode"); - compareEdge(gTrigger, gMenuPopup, "end_after", 0, 0, testname); - } -}, -{ - testname: "close popup with escape", - events: [ "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuInactive thepopup", ], - test: function(testname, step) { - synthesizeKey("VK_ESCAPE", { }); - checkClosed("trigger", testname); - } -}, -{ - // check that offsets may be supplied to the openPopup method - testname: "open popup anchored with offsets", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - // attribute is empty so does not override - gMenuPopup.setAttribute("position", ""); - gMenuPopup.openPopup(gTrigger, "before_start", 5, 10, true, true); - }, - result: function(testname, step) { compareEdge(gTrigger, gMenuPopup, "before_start", 5, 10, testname); } -}, -{ - // these tests check to ensure that passing an anchor and position - // puts the popup in the right place - testname: "show popup anchored", - condition: function() { - // only perform this test for popups not in a menu, such as those using - // the popup attribute, as the showPopup implementation in popup.xml - // calls openMenu if the popup is inside a menu - return !gIsMenu; - }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - steps: [["topleft", "topleft"], - ["topleft", "topright"], ["topleft", "bottomleft"], - ["topright", "topleft"], ["topright", "bottomright"], - ["bottomleft", "bottomright"], ["bottomleft", "topleft"], - ["bottomright", "bottomleft"], ["bottomright", "topright"]], - test: function(testname, step) { - // the attributes should be ignored - gMenuPopup.setAttribute("popupanchor", "topright"); - gMenuPopup.setAttribute("popupalign", "bottomright"); - gMenuPopup.setAttribute("position", "end_after"); - gMenuPopup.showPopup(gTrigger, -1, -1, "popup", step[0], step[1]); - }, - result: function(testname, step) { - var pos = convertPosition(step[0], step[1]); - compareEdge(gTrigger, gMenuPopup, pos, 0, 0, testname); - gMenuPopup.removeAttribute("popupanchor"); - gMenuPopup.removeAttribute("popupalign"); - gMenuPopup.removeAttribute("position"); - } -}, -{ - testname: "show popup with position", - condition: function() { return !gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gMenuPopup.showPopup(gTrigger, gScreenX + 60, gScreenY + 15, - "context", "topleft", "bottomright"); - }, - result: function(testname, step) { - var rect = gMenuPopup.getBoundingClientRect(); - ok(true, gScreenX + "," + gScreenY); - is(rect.left, 60, testname + " left"); - is(rect.top, 15, testname + " top"); - ok(rect.right, testname + " right is " + rect.right); - ok(rect.bottom, testname + " bottom is " + rect.bottom); - } -}, -{ - // if no anchor is supplied to openPopup, it should be opened relative - // to the viewport. - testname: "open popup unanchored", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function(testname, step) { gMenuPopup.openPopup(null, "after_start", 6, 8, false); }, - result: function(testname, step) { - var rect = gMenuPopup.getBoundingClientRect(); - ok(rect.left == 6 && rect.top == 8 && rect.right && rect.bottom, testname); - } -}, -{ - testname: "activate menuitem with mouse", - events: [ "DOMMenuInactive thepopup", "command item3", - "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuItemInactive item3" ], - test: function(testname, step) { - var item3 = document.getElementById("item3"); - synthesizeMouse(item3, 4, 4, { }); - }, - result: function(testname, step) { checkClosed("trigger", testname); } -}, -{ - testname: "close popup", - condition: function() { return false; }, - events: [ "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuInactive thepopup" ], - test: function(testname, step) { gMenuPopup.hidePopup(); } -}, -{ - testname: "open popup at screen", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function(testname, step) { - gExpectedTriggerNode = "notset"; - gMenuPopup.openPopupAtScreen(gScreenX + 24, gScreenY + 20, false); - }, - result: function(testname, step) { - gExpectedTriggerNode = null; - is(gMenuPopup.anchorNode, null, testname + " anchorNode"); - is(gMenuPopup.triggerNode, null, testname + " triggerNode"); - is(document.popupNode, null, testname + " document.popupNode"); - var rect = gMenuPopup.getBoundingClientRect(); - is(rect.left, 24, testname + " left"); - is(rect.top, 20, testname + " top"); - ok(rect.right, testname + " right is " + rect.right); - ok(rect.bottom, testname + " bottom is " + rect.bottom); - } -}, -{ - // check that pressing a menuitem's accelerator selects it. Note that - // the menuitem with the M accesskey overrides the earlier menuitem that - // begins with M. - testname: "menuitem accelerator", - events: [ "DOMMenuItemActive amenu", "DOMMenuItemInactive amenu", - "DOMMenuInactive thepopup", - "command amenu", "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuItemInactive amenu" - ], - test: function() { synthesizeKey("M", { }); }, - result: function(testname) { checkClosed("trigger", testname); } -}, -{ - testname: "open context popup at screen", - events: [ "popupshowing thepopup 0010", "popupshown thepopup" ], - test: function(testname, step) { - gExpectedTriggerNode = gCachedEvent.target; - gMenuPopup.openPopupAtScreen(gScreenX + 8, gScreenY + 16, true, gCachedEvent); - }, - result: function(testname, step) { - gExpectedTriggerNode = null; - is(gMenuPopup.anchorNode, null, testname + " anchorNode"); - is(gMenuPopup.triggerNode, gCachedEvent.target, testname + " triggerNode"); - is(document.popupNode, gCachedEvent.target, testname + " document.popupNode"); - - var childframe = document.getElementById("childframe"); - if (childframe) { - for (var t = 0; t < 2; t++) { - var child = childframe.contentDocument; - var evt = child.createEvent("Event"); - evt.initEvent("click", true, true); - child.documentElement.dispatchEvent(evt); - is(child.documentElement.getAttribute("data"), "xnull", - "cannot get popupNode from other document"); - child.documentElement.setAttribute("data", "none"); - // now try again with document.popupNode set explicitly - document.popupNode = gCachedEvent.target; - } - } - - var openX = 8; - var openY = 16; - var rect = gMenuPopup.getBoundingClientRect(); - is(rect.left, openX + (platformIsMac() ? 1 : 2), testname + " left"); - is(rect.top, openY + (platformIsMac() ? -6 : 2), testname + " top"); - ok(rect.right, testname + " right is " + rect.right); - ok(rect.bottom, testname + " bottom is " + rect.bottom); - } -}, -{ - // pressing a letter that doesn't correspond to an accelerator, but does - // correspond to the first letter in a menu's label. The menu should not - // close because there is more than one item corresponding to that letter - testname: "menuitem with non accelerator", - events: [ "DOMMenuItemActive one" ], - test: function() { synthesizeKey("O", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkActive(gMenuPopup, "one", testname); - } -}, -{ - // pressing the letter again should select the next one that starts with - // that letter - testname: "menuitem with non accelerator again", - events: [ "DOMMenuItemInactive one", "DOMMenuItemActive submenu" ], - test: function() { synthesizeKey("O", { }); }, - result: function(testname) { - // 'submenu' is a menu but it should not be open - checkOpen("trigger", testname); - checkClosed("submenu", testname); - checkActive(gMenuPopup, "submenu", testname); - } -}, -{ - // open the submenu with the cursor right key - testname: "open submenu with cursor right", - events: [ "popupshowing submenupopup", "DOMMenuItemActive submenuitem", - "popupshown submenupopup" ], - test: function() { synthesizeKey("VK_RIGHT", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkOpen("submenu", testname); - checkActive(gMenuPopup, "submenu", testname); - checkActive(document.getElementById("submenupopup"), "submenuitem", testname); - } -}, -{ - // close the submenu with the cursor left key - testname: "close submenu with cursor left", - events: [ "popuphiding submenupopup", "popuphidden submenupopup", - "DOMMenuItemInactive submenuitem", "DOMMenuInactive submenupopup", - "DOMMenuItemActive submenu" ], - test: function() { synthesizeKey("VK_LEFT", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkClosed("submenu", testname); - checkActive(gMenuPopup, "submenu", testname); - checkActive(document.getElementById("submenupopup"), "", testname); - } -}, -{ - // open the submenu with the enter key - testname: "open submenu with enter", - events: [ "popupshowing submenupopup", "DOMMenuItemActive submenuitem", - "popupshown submenupopup" ], - test: function() { synthesizeKey("VK_RETURN", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkOpen("submenu", testname); - checkActive(gMenuPopup, "submenu", testname); - checkActive(document.getElementById("submenupopup"), "submenuitem", testname); - } -}, -{ - // close the submenu with the escape key - testname: "close submenu with escape", - events: [ "popuphiding submenupopup", "popuphidden submenupopup", - "DOMMenuItemInactive submenuitem", "DOMMenuInactive submenupopup", - "DOMMenuItemActive submenu" ], - test: function() { synthesizeKey("VK_ESCAPE", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkClosed("submenu", testname); - checkActive(gMenuPopup, "submenu", testname); - checkActive(document.getElementById("submenupopup"), "", testname); - } -}, -{ - // pressing the letter again when the next item is disabled should still - // select the disabled item on Windows, but select the next item on other - // platforms - testname: "menuitem with non accelerator disabled", - events: function() { - if (navigator.platform.indexOf("Win") == 0) { - return [ "DOMMenuItemInactive submenu", "DOMMenuItemActive other", - "DOMMenuItemInactive other", "DOMMenuItemActive item1" ]; - } - return [ "DOMMenuItemInactive submenu", "DOMMenuItemActive last", - "DOMMenuItemInactive last", "DOMMenuItemActive item1" ]; - }, - test: function() { synthesizeKey("O", { }); synthesizeKey("F", { }); }, - result: function(testname) { - checkActive(gMenuPopup, "item1", testname); - } -}, -{ - // pressing a letter that doesn't correspond to an accelerator nor the - // first letter of a menu. This should have no effect. - testname: "menuitem with keypress no accelerator found", - test: function() { synthesizeKey("G", { }); }, - result: function(testname) { - checkOpen("trigger", testname); - checkActive(gMenuPopup, "item1", testname); - } -}, -{ - // when only one menuitem starting with that letter exists, it should be - // selected and the menu closed - testname: "menuitem with non accelerator single", - events: [ "DOMMenuItemInactive item1", "DOMMenuItemActive amenu", - "DOMMenuItemInactive amenu", "DOMMenuInactive thepopup", - "command amenu", "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuItemInactive amenu", - ], - test: function() { synthesizeKey("M", { }); }, - result: function(testname) { - checkClosed("trigger", testname); - checkActive(gMenuPopup, "", testname); - } -}, -{ - testname: "open context popup at screen with all modifiers set", - events: [ "popupshowing thepopup 1111", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gMenuPopup.openPopupAtScreen(gScreenX + 8, gScreenY + 16, true, gCachedEvent2); - } -}, -{ - testname: "open popup with open property", - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function(testname, step) { openMenu(gTrigger); }, - result: function(testname, step) { - checkOpen("trigger", testname); - if (gIsMenu) - compareEdge(gTrigger, gMenuPopup, "after_start", 0, 0, testname); - } -}, -{ - testname: "open submenu with open property", - events: [ "popupshowing submenupopup", "DOMMenuItemActive submenu", - "popupshown submenupopup" ], - test: function(testname, step) { openMenu(document.getElementById("submenu")); }, - result: function(testname, step) { - checkOpen("trigger", testname); - checkOpen("submenu", testname); - // XXXndeakin - // getBoundingClientRect doesn't seem to working right for submenus - // so disable this test for now - // compareEdge(document.getElementById("submenu"), - // document.getElementById("submenupopup"), "end_before", 0, 0, testname); - } -}, -{ - testname: "hidePopup hides entire chain", - events: [ "popuphiding submenupopup", "popuphidden submenupopup", - "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuInactive submenupopup", - "DOMMenuItemInactive submenu", "DOMMenuItemInactive submenu", - "DOMMenuInactive thepopup", ], - test: function() { gMenuPopup.hidePopup(); }, - result: function(testname, step) { - checkClosed("trigger", testname); - checkClosed("submenu", testname); - } -}, -{ - testname: "open submenu with open property without parent open", - test: function(testname, step) { openMenu(document.getElementById("submenu")); }, - result: function(testname, step) { - checkClosed("trigger", testname); - checkClosed("submenu", testname); - } -}, -{ - testname: "open popup with open property and position", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function(testname, step) { - gMenuPopup.setAttribute("position", "before_start"); - openMenu(gTrigger); - }, - result: function(testname, step) { - compareEdge(gTrigger, gMenuPopup, "before_start", 0, 0, testname); - } -}, -{ - testname: "close popup with open property", - condition: function() { return gIsMenu; }, - events: [ "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuInactive thepopup" ], - test: function(testname, step) { closeMenu(gTrigger, gMenuPopup); }, - result: function(testname, step) { checkClosed("trigger", testname); } -}, -{ - testname: "open popup with open property, position, anchor and alignment", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gMenuPopup.setAttribute("position", "start_after"); - gMenuPopup.setAttribute("popupanchor", "topright"); - gMenuPopup.setAttribute("popupalign", "bottomright"); - openMenu(gTrigger); - }, - result: function(testname, step) { - compareEdge(gTrigger, gMenuPopup, "start_after", 0, 0, testname); - } -}, -{ - testname: "open popup with open property, anchor and alignment", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gMenuPopup.removeAttribute("position"); - gMenuPopup.setAttribute("popupanchor", "bottomright"); - gMenuPopup.setAttribute("popupalign", "topright"); - openMenu(gTrigger); - }, - result: function(testname, step) { - compareEdge(gTrigger, gMenuPopup, "after_end", 0, 0, testname); - gMenuPopup.removeAttribute("popupanchor"); - gMenuPopup.removeAttribute("popupalign"); - } -}, -{ - testname: "focus and cursor down on trigger", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gTrigger.focus(); - synthesizeKey("VK_DOWN", { altKey: !platformIsMac() }); - }, - result: function(testname, step) { - checkOpen("trigger", testname); - checkActive(gMenuPopup, "", testname); - } -}, -{ - testname: "focus and cursor up on trigger", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - test: function(testname, step) { - gTrigger.focus(); - synthesizeKey("VK_UP", { altKey: !platformIsMac() }); - }, - result: function(testname, step) { - checkOpen("trigger", testname); - checkActive(gMenuPopup, "", testname); - } -}, -{ - testname: "select and enter on menuitem", - condition: function() { return gIsMenu; }, - events: [ "DOMMenuItemActive item1", "DOMMenuItemInactive item1", - "DOMMenuInactive thepopup", "command item1", - "popuphiding thepopup", "popuphidden thepopup", - "DOMMenuItemInactive item1" ], - test: function(testname, step) { - synthesizeKey("VK_DOWN", { }); - synthesizeKey("VK_RETURN", { }); - }, - result: function(testname, step) { checkClosed("trigger", testname); } -}, -{ - testname: "focus trigger and key to open", - condition: function() { return gIsMenu; }, - events: [ "popupshowing thepopup", "popupshown thepopup" ], - autohide: "thepopup", - test: function(testname, step) { - gTrigger.focus(); - synthesizeKey(platformIsMac() ? " " : "VK_F4", { }); - }, - result: function(testname, step) { - checkOpen("trigger", testname); - checkActive(gMenuPopup, "", testname); - } -}, -{ - // the menu should only open when the meta or alt key is not pressed - testname: "focus trigger and key wrong modifier", - condition: function() { return gIsMenu; }, - test: function(testname, step) { - gTrigger.focus(); - if (platformIsMac()) - synthesizeKey("VK_F4", { altKey: true }); - else - synthesizeKey("", { metaKey: true }); - }, - result: function(testname, step) { - checkClosed("trigger", testname); - } -}, -{ - testname: "mouse click on disabled menu", - condition: function() { return gIsMenu; }, - test: function(testname, step) { - gTrigger.setAttribute("disabled", "true"); - synthesizeMouse(gTrigger, 4, 4, { }); - }, - result: function(testname, step) { - checkClosed("trigger", testname); - gTrigger.removeAttribute("disabled"); - } -}, -{ - // openPopup should open the menu synchronously, however popupshown - // is fired asynchronously - testname: "openPopup synchronous", - events: [ "popupshowing thepopup", "popupshowing submenupopup", - "popupshown thepopup", "DOMMenuItemActive submenu", - "popupshown submenupopup" ], - test: function(testname, step) { - gMenuPopup.openPopup(gTrigger, "after_start", 0, 0, false, true); - document.getElementById("submenupopup"). - openPopup(gTrigger, "end_before", 0, 0, false, true); - checkOpen("trigger", testname); - checkOpen("submenu", testname); - } -}, -{ - // remove the content nodes for the popup - testname: "remove content", - test: function(testname, step) { - var submenupopup = document.getElementById("submenupopup"); - submenupopup.parentNode.removeChild(submenupopup); - var popup = document.getElementById("thepopup"); - popup.parentNode.removeChild(popup); - } -} - -]; - -function platformIsMac() -{ - return navigator.platform.indexOf("Mac") > -1; -} diff --git a/toolkit/content/tests/chrome/rtlchrome/rtl.css b/toolkit/content/tests/chrome/rtlchrome/rtl.css deleted file mode 100644 index 0fea01001..000000000 --- a/toolkit/content/tests/chrome/rtlchrome/rtl.css +++ /dev/null @@ -1,2 +0,0 @@ -/* Imitate RTL UI */ -window { direction: rtl; } diff --git a/toolkit/content/tests/chrome/rtlchrome/rtl.dtd b/toolkit/content/tests/chrome/rtlchrome/rtl.dtd deleted file mode 100644 index 8b32de674..000000000 --- a/toolkit/content/tests/chrome/rtlchrome/rtl.dtd +++ /dev/null @@ -1 +0,0 @@ - diff --git a/toolkit/content/tests/chrome/rtlchrome/rtl.manifest b/toolkit/content/tests/chrome/rtlchrome/rtl.manifest deleted file mode 100644 index a4cc6929b..000000000 --- a/toolkit/content/tests/chrome/rtlchrome/rtl.manifest +++ /dev/null @@ -1,5 +0,0 @@ -content rtlchrome / - -# Override intl.css with our own CSS file -override chrome://global/locale/intl.css chrome://rtlchrome/rtl.css -override chrome://global/locale/global.dtd chrome://rtlchrome/rtl.dtd diff --git a/toolkit/content/tests/chrome/rtltest/content/dirtest.xul b/toolkit/content/tests/chrome/rtltest/content/dirtest.xul deleted file mode 100644 index b75d41eaa..000000000 --- a/toolkit/content/tests/chrome/rtltest/content/dirtest.xul +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -hbox, vbox { background-color: white; } -hbox:-moz-locale-dir(ltr) { background-color: yellow; } -vbox:-moz-locale-dir(rtl) { background-color: green; } - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_colorpicker_popup.xul b/toolkit/content/tests/chrome/test_colorpicker_popup.xul deleted file mode 100644 index 3ac84260b..000000000 --- a/toolkit/content/tests/chrome/test_colorpicker_popup.xul +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_contextmenu_list.xul b/toolkit/content/tests/chrome/test_contextmenu_list.xul deleted file mode 100644 index 157831a58..000000000 --- a/toolkit/content/tests/chrome/test_contextmenu_list.xul +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_menuitem_blink.xul b/toolkit/content/tests/chrome/test_menuitem_blink.xul deleted file mode 100644 index 319c284fd..000000000 --- a/toolkit/content/tests/chrome/test_menuitem_blink.xul +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_menuitem_commands.xul b/toolkit/content/tests/chrome/test_menuitem_commands.xul deleted file mode 100644 index e31774ccc..000000000 --- a/toolkit/content/tests/chrome/test_menuitem_commands.xul +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - diff --git a/toolkit/content/tests/chrome/test_popup_anchor.xul b/toolkit/content/tests/chrome/test_popup_anchor.xul deleted file mode 100644 index 5839c52a3..000000000 --- a/toolkit/content/tests/chrome/test_popup_anchor.xul +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_anchoratrect.xul b/toolkit/content/tests/chrome/test_popup_anchoratrect.xul deleted file mode 100644 index c12e22502..000000000 --- a/toolkit/content/tests/chrome/test_popup_anchoratrect.xul +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_attribute.xul b/toolkit/content/tests/chrome/test_popup_attribute.xul deleted file mode 100644 index 2a256078d..000000000 --- a/toolkit/content/tests/chrome/test_popup_attribute.xul +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_button.xul b/toolkit/content/tests/chrome/test_popup_button.xul deleted file mode 100644 index 3803e465f..000000000 --- a/toolkit/content/tests/chrome/test_popup_button.xul +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_coords.xul b/toolkit/content/tests/chrome/test_popup_coords.xul deleted file mode 100644 index 4597b5cc0..000000000 --- a/toolkit/content/tests/chrome/test_popup_coords.xul +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_preventdefault_chrome.xul b/toolkit/content/tests/chrome/test_popup_preventdefault_chrome.xul deleted file mode 100644 index 46f14cd6a..000000000 --- a/toolkit/content/tests/chrome/test_popup_preventdefault_chrome.xul +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_recreate.xul b/toolkit/content/tests/chrome/test_popup_recreate.xul deleted file mode 100644 index 14822acbd..000000000 --- a/toolkit/content/tests/chrome/test_popup_recreate.xul +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -

-

- -
-
- - -
diff --git a/toolkit/content/tests/chrome/test_popup_scaled.xul b/toolkit/content/tests/chrome/test_popup_scaled.xul deleted file mode 100644 index 6bbf6c653..000000000 --- a/toolkit/content/tests/chrome/test_popup_scaled.xul +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/toolkit/content/tests/chrome/window_titlebar.xul b/toolkit/content/tests/chrome/window_titlebar.xul deleted file mode 100644 index e27782153..000000000 --- a/toolkit/content/tests/chrome/window_titlebar.xul +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - diff --git a/toolkit/content/tests/chrome/window_tooltip.xul b/toolkit/content/tests/chrome/window_tooltip.xul deleted file mode 100644 index 087c91c3e..000000000 --- a/toolkit/content/tests/chrome/window_tooltip.xul +++ /dev/null @@ -1,311 +0,0 @@ - - - - - - - - - - - - - - -