Permalink
Browse files

Flag decodeImageData for Fx20 (bug 852679)

  • Loading branch information...
1 parent d0a7b2b commit 2b1daf44fd605eddbc40f943a1c0864c133fd101 @wraithan wraithan committed Mar 21, 2013
Showing with 18 additions and 3 deletions.
  1. +7 −0 tests/compat/test_gecko20.py
  2. +11 −3 validator/testcases/regex.py
@@ -20,3 +20,10 @@ def test_global_private_browsing_service(self):
""")
self.assert_silent()
self.assert_compat_error(type_="notice")
+
+ def test_decode_image_data(self):
+ self.run_script_for_compat("""
+ var x = decodeImageData;
+ """)
+ self.assert_silent()
+ self.assert_compat_warning(type_="notice")
@@ -849,7 +849,8 @@ class Gecko20RegexTests(CompatRegexTestHelper):
"""Regex tests for Gecko 20 updates."""
VERSION = FX20_DEFINITION
- LINK = "https://developer.mozilla.org/en-US/docs/Updating_addons_broken_by_private_browsing_changes"
+ PRIVATE_BROWSING_LINK = "https://developer.mozilla.org/en-US/docs/Updating_addons_broken_by_private_browsing_changes"
+ DECODE_LINK = "https://bugzilla.mozilla.org/show_bug.cgi?id=816362"
def js_tests(self):
@@ -859,7 +860,7 @@ def js_tests(self):
"nsIPrivateBrowsingService and its related observer "
"notifications have been removed due to the new per-window "
"private browsing mode. See {0} for more "
- "information.".format(self.LINK),
+ "information.".format(self.PRIVATE_BROWSING_LINK),
compat_type="error", log_function=self.err.notice)
yield self.get_test_bug(
@@ -868,9 +869,16 @@ def js_tests(self):
"nsIPrivateBrowsingService and its related observer "
"notifications have been removed due to the new per-window "
"private browsing mode. See {0} formore "
- "information.".format(self.LINK),
+ "information.".format(self.PRIVATE_BROWSING_LINK),
compat_type="error", log_function=self.err.notice)
+ yield self.get_test_bug(
+ 816362, "decodeImageData",
+ "`decodeImageData has been deprecated`",
+ "decodeImageData has been deprecated. You should instead use "
+ "decodeImage, from the same interface. See {0} for more "
+ "information.".format(self.DECODE_LINK),
+ compat_type="warning", log_function=self.err.notice)
@register_generator
class Thunderbird7RegexTests(CompatRegexTestHelper):

0 comments on commit 2b1daf4

Please sign in to comment.