From d5c89b63ec65118f1c6cbd59b2c704023ecd2e2a Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Fri, 3 Feb 2012 20:19:17 +0900 Subject: [PATCH] Bug 719754 - rewrite name/test_nsRootAcc.xul, r=marcoz --HG-- rename : accessible/tests/mochitest/name/test_nsRootAcc.xul => accessible/tests/mochitest/name/test_browserui.xul --- accessible/tests/mochitest/browser.js | 8 ++ accessible/tests/mochitest/events/Makefile.in | 2 - accessible/tests/mochitest/name/Makefile.in | 3 +- .../tests/mochitest/name/nsRootAcc_wnd.xul | 128 ------------------ .../tests/mochitest/name/test_browserui.xul | 106 +++++++++++++++ .../tests/mochitest/name/test_nsRootAcc.xul | 63 --------- 6 files changed, 115 insertions(+), 195 deletions(-) delete mode 100644 accessible/tests/mochitest/name/nsRootAcc_wnd.xul create mode 100644 accessible/tests/mochitest/name/test_browserui.xul delete mode 100644 accessible/tests/mochitest/name/test_nsRootAcc.xul diff --git a/accessible/tests/mochitest/browser.js b/accessible/tests/mochitest/browser.js index 078ce8a8201..1bfb5ed58d9 100644 --- a/accessible/tests/mochitest/browser.js +++ b/accessible/tests/mochitest/browser.js @@ -25,6 +25,14 @@ function browserWindow() return gBrowserContext.browserWnd; } +/** + * Return the document of the browser window. + */ +function browserDocument() +{ + return browserWindow().document; +} + /** * Return tab browser object. */ diff --git a/accessible/tests/mochitest/events/Makefile.in b/accessible/tests/mochitest/events/Makefile.in index 8d4a204bfd3..e1bc2839854 100644 --- a/accessible/tests/mochitest/events/Makefile.in +++ b/accessible/tests/mochitest/events/Makefile.in @@ -45,8 +45,6 @@ relativesrcdir = accessible/events include $(DEPTH)/config/autoconf.mk include $(topsrcdir)/config/rules.mk -# test_scroll.xul disabled for misusing (bug 715857) - _TEST_FILES =\ docload_wnd.html \ focus.html \ diff --git a/accessible/tests/mochitest/name/Makefile.in b/accessible/tests/mochitest/name/Makefile.in index 65160b452a7..288acddce15 100644 --- a/accessible/tests/mochitest/name/Makefile.in +++ b/accessible/tests/mochitest/name/Makefile.in @@ -45,8 +45,6 @@ relativesrcdir = accessible/name include $(DEPTH)/config/autoconf.mk include $(topsrcdir)/config/rules.mk -# test_nsRootAcc.xul, nsRootAcc_wnd.xul disabled for misusing (bug 715857) - _TEST_FILES =\ general.css \ general.xbl \ @@ -57,6 +55,7 @@ _TEST_FILES =\ test_link.html \ test_list.html \ test_markup.html \ + test_browserui.xul \ test_tree.xul \ markuprules.xml \ $(NULL) diff --git a/accessible/tests/mochitest/name/nsRootAcc_wnd.xul b/accessible/tests/mochitest/name/nsRootAcc_wnd.xul deleted file mode 100644 index e1574e4c6da..00000000000 --- a/accessible/tests/mochitest/name/nsRootAcc_wnd.xul +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/accessible/tests/mochitest/name/test_browserui.xul b/accessible/tests/mochitest/name/test_browserui.xul new file mode 100644 index 00000000000..1b282f3c20d --- /dev/null +++ b/accessible/tests/mochitest/name/test_browserui.xul @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + Mozilla Bug + +

+ +
+    
+ + + +
+
diff --git a/accessible/tests/mochitest/name/test_nsRootAcc.xul b/accessible/tests/mochitest/name/test_nsRootAcc.xul deleted file mode 100644 index 31477c3bc03..00000000000 --- a/accessible/tests/mochitest/name/test_nsRootAcc.xul +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - Mozilla Bug - -

- -
-    
- - - -
-