From 8033422f77d35c9f14af7a5bb121598262a0ffcc Mon Sep 17 00:00:00 2001 From: Robert Strong Date: Wed, 2 Jun 2010 22:28:45 -0700 Subject: [PATCH] Bug 546595 - Add mochitests for the incompatibleList and incompatibleCheck pages. r=dtownsend --- .../mozapps/update/test/chrome/Makefile.in | 16 + .../test/chrome/test_0011_check_basic.xul | 6 +- .../chrome/test_0012_check_basic_license.xul | 6 +- .../chrome/test_0013_check_incompat_basic.xul | 59 ++ ...test_0014_check_incompat_basic_license.xul | 99 ++++ .../test_0015_check_incompat_basic_addons.xul | 68 +++ ...16_check_incompat_basic_license_addons.xul | 108 ++++ .../test/chrome/test_0021_check_billboard.xul | 6 +- .../test_0022_check_billboard_license.xul | 6 +- .../test_0023_check_incompat_billboard.xul | 66 +++ ..._0024_check_incompat_billboard_license.xul | 108 ++++ ...t_0025_check_incompat_billboard_addons.xul | 77 +++ ...heck_incompat_billboard_license_addons.xul | 117 ++++ .../test/chrome/test_0031_available_basic.xul | 6 +- .../test_0032_available_basic_license.xul | 6 +- .../test_0033_available_incompat_basic.xul | 57 ++ ..._0034_available_incompat_basic_license.xul | 97 ++++ ...t_0035_available_incompat_basic_addons.xul | 66 +++ ...vailable_incompat_basic_license_addons.xul | 106 ++++ .../chrome/test_0041_available_billboard.xul | 6 +- .../test_0042_available_billboard_license.xul | 6 +- ...test_0043_available_incompat_billboard.xul | 64 +++ ...4_available_incompat_billboard_license.xul | 106 ++++ ...45_available_incompat_billboard_addons.xul | 75 +++ ...able_incompat_billboard_license_addons.xul | 115 ++++ .../test_0051_check_error_xml_malformed.xul | 6 +- .../chrome/test_0052_check_no_updates.xul | 6 +- ...st_0053_check_billboard_license_noAttr.xul | 6 +- .../test_0054_check_billboard_license_404.xul | 6 +- ...1_error_patchApplyFailure_partial_only.xul | 8 +- ..._error_patchApplyFailure_complete_only.xul | 8 +- ...ror_patchApplyFailure_partial_complete.xul | 10 +- ..._error_patchApplyFailure_verify_failed.xul | 10 +- .../test/chrome/test_0091_installed.xul | 8 +- .../chrome/test_0092_finishedBackground.xul | 8 +- .../chrome/test_0111_neverButton_basic.xul | 6 +- .../test_0112_neverButton_billboard.xul | 6 +- .../update/test/chrome/test_9999_cleanup.xul | 22 +- toolkit/mozapps/update/test/chrome/update.sjs | 114 +++- toolkit/mozapps/update/test/chrome/utils.js | 538 ++++++++++++++++-- toolkit/mozapps/update/test/shared.js | 15 + 41 files changed, 2078 insertions(+), 151 deletions(-) create mode 100644 toolkit/mozapps/update/test/chrome/test_0013_check_incompat_basic.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0014_check_incompat_basic_license.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0015_check_incompat_basic_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0016_check_incompat_basic_license_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0023_check_incompat_billboard.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0024_check_incompat_billboard_license.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0025_check_incompat_billboard_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0026_check_incompat_billboard_license_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0033_available_incompat_basic.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0034_available_incompat_basic_license.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0035_available_incompat_basic_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0036_available_incompat_basic_license_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0043_available_incompat_billboard.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0044_available_incompat_billboard_license.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0045_available_incompat_billboard_addons.xul create mode 100644 toolkit/mozapps/update/test/chrome/test_0046_available_incompat_billboard_license_addons.xul diff --git a/toolkit/mozapps/update/test/chrome/Makefile.in b/toolkit/mozapps/update/test/chrome/Makefile.in index a684e90e99e..f2350433bd1 100644 --- a/toolkit/mozapps/update/test/chrome/Makefile.in +++ b/toolkit/mozapps/update/test/chrome/Makefile.in @@ -50,12 +50,28 @@ _OTHER_FILES = \ _CHROME_FILES = \ test_0011_check_basic.xul \ test_0012_check_basic_license.xul \ + test_0013_check_incompat_basic.xul \ + test_0015_check_incompat_basic_addons.xul \ + test_0014_check_incompat_basic_license.xul \ + test_0016_check_incompat_basic_license_addons.xul \ test_0021_check_billboard.xul \ test_0022_check_billboard_license.xul \ + test_0023_check_incompat_billboard.xul \ + test_0024_check_incompat_billboard_license.xul \ + test_0025_check_incompat_billboard_addons.xul \ + test_0026_check_incompat_billboard_license_addons.xul \ test_0031_available_basic.xul \ test_0032_available_basic_license.xul \ + test_0033_available_incompat_basic.xul \ + test_0034_available_incompat_basic_license.xul \ + test_0035_available_incompat_basic_addons.xul \ + test_0036_available_incompat_basic_license_addons.xul \ test_0041_available_billboard.xul \ test_0042_available_billboard_license.xul \ + test_0043_available_incompat_billboard.xul \ + test_0044_available_incompat_billboard_license.xul \ + test_0045_available_incompat_billboard_addons.xul \ + test_0046_available_incompat_billboard_license_addons.xul \ test_0051_check_error_xml_malformed.xul \ test_0052_check_no_updates.xul \ test_0053_check_billboard_license_noAttr.xul \ diff --git a/toolkit/mozapps/update/test/chrome/test_0011_check_basic.xul b/toolkit/mozapps/update/test/chrome/test_0011_check_basic.xul index 77c4d231b27..67c53e9ec89 100644 --- a/toolkit/mozapps/update/test/chrome/test_0011_check_basic.xul +++ b/toolkit/mozapps/update/test/chrome/test_0011_check_basic.xul @@ -8,7 +8,7 @@ - + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0014_check_incompat_basic_license.xul b/toolkit/mozapps/update/test/chrome/test_0014_check_incompat_basic_license.xul new file mode 100644 index 00000000000..05acaea49c7 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0014_check_incompat_basic_license.xul @@ -0,0 +1,99 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0015_check_incompat_basic_addons.xul b/toolkit/mozapps/update/test/chrome/test_0015_check_incompat_basic_addons.xul new file mode 100644 index 00000000000..510ad787b4b --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0015_check_incompat_basic_addons.xul @@ -0,0 +1,68 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0016_check_incompat_basic_license_addons.xul b/toolkit/mozapps/update/test/chrome/test_0016_check_incompat_basic_license_addons.xul new file mode 100644 index 00000000000..91cc9cb585a --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0016_check_incompat_basic_license_addons.xul @@ -0,0 +1,108 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0021_check_billboard.xul b/toolkit/mozapps/update/test/chrome/test_0021_check_billboard.xul index d3398702f1a..41f746445fe 100644 --- a/toolkit/mozapps/update/test/chrome/test_0021_check_billboard.xul +++ b/toolkit/mozapps/update/test/chrome/test_0021_check_billboard.xul @@ -8,7 +8,7 @@ - + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0024_check_incompat_billboard_license.xul b/toolkit/mozapps/update/test/chrome/test_0024_check_incompat_billboard_license.xul new file mode 100644 index 00000000000..5f10548a76a --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0024_check_incompat_billboard_license.xul @@ -0,0 +1,108 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0025_check_incompat_billboard_addons.xul b/toolkit/mozapps/update/test/chrome/test_0025_check_incompat_billboard_addons.xul new file mode 100644 index 00000000000..aec72171a00 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0025_check_incompat_billboard_addons.xul @@ -0,0 +1,77 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0026_check_incompat_billboard_license_addons.xul b/toolkit/mozapps/update/test/chrome/test_0026_check_incompat_billboard_license_addons.xul new file mode 100644 index 00000000000..c2303753ba6 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0026_check_incompat_billboard_license_addons.xul @@ -0,0 +1,117 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0031_available_basic.xul b/toolkit/mozapps/update/test/chrome/test_0031_available_basic.xul index 9d8cc72dcf9..b9df56d45bb 100644 --- a/toolkit/mozapps/update/test/chrome/test_0031_available_basic.xul +++ b/toolkit/mozapps/update/test/chrome/test_0031_available_basic.xul @@ -8,7 +8,7 @@ - + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0034_available_incompat_basic_license.xul b/toolkit/mozapps/update/test/chrome/test_0034_available_incompat_basic_license.xul new file mode 100644 index 00000000000..af8c45cbd52 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0034_available_incompat_basic_license.xul @@ -0,0 +1,97 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0035_available_incompat_basic_addons.xul b/toolkit/mozapps/update/test/chrome/test_0035_available_incompat_basic_addons.xul new file mode 100644 index 00000000000..39e85aaa27c --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0035_available_incompat_basic_addons.xul @@ -0,0 +1,66 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0036_available_incompat_basic_license_addons.xul b/toolkit/mozapps/update/test/chrome/test_0036_available_incompat_basic_license_addons.xul new file mode 100644 index 00000000000..d6b84ab64ec --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0036_available_incompat_basic_license_addons.xul @@ -0,0 +1,106 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0041_available_billboard.xul b/toolkit/mozapps/update/test/chrome/test_0041_available_billboard.xul index 13c92be3a14..f779f69c4d9 100644 --- a/toolkit/mozapps/update/test/chrome/test_0041_available_billboard.xul +++ b/toolkit/mozapps/update/test/chrome/test_0041_available_billboard.xul @@ -8,7 +8,7 @@ - + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0044_available_incompat_billboard_license.xul b/toolkit/mozapps/update/test/chrome/test_0044_available_incompat_billboard_license.xul new file mode 100644 index 00000000000..144ba4a0717 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0044_available_incompat_billboard_license.xul @@ -0,0 +1,106 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0045_available_incompat_billboard_addons.xul b/toolkit/mozapps/update/test/chrome/test_0045_available_incompat_billboard_addons.xul new file mode 100644 index 00000000000..570a865dd07 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0045_available_incompat_billboard_addons.xul @@ -0,0 +1,75 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0046_available_incompat_billboard_license_addons.xul b/toolkit/mozapps/update/test/chrome/test_0046_available_incompat_billboard_license_addons.xul new file mode 100644 index 00000000000..9c8ad44bbd8 --- /dev/null +++ b/toolkit/mozapps/update/test/chrome/test_0046_available_incompat_billboard_license_addons.xul @@ -0,0 +1,115 @@ + + + + + + + + + + +

+ +

+
+
diff --git a/toolkit/mozapps/update/test/chrome/test_0051_check_error_xml_malformed.xul b/toolkit/mozapps/update/test/chrome/test_0051_check_error_xml_malformed.xul index 10cb5bed535..df46374267f 100644 --- a/toolkit/mozapps/update/test/chrome/test_0051_check_error_xml_malformed.xul +++ b/toolkit/mozapps/update/test/chrome/test_0051_check_error_xml_malformed.xul @@ -8,7 +8,7 @@ -