Permalink
Browse files

Flag nsIProfile (bug 852663)

  • Loading branch information...
1 parent 1405905 commit 2473d3c1b2ba7d8c57aaf7b9bd4862d8dd60958f @wraithan wraithan committed Mar 21, 2013
Showing with 20 additions and 3 deletions.
  1. +10 −3 tests/compat/test_gecko20.py
  2. +10 −0 validator/testcases/regex.py
@@ -16,21 +16,28 @@ def test_private_browsing(self):
def test_global_private_browsing_service(self):
self.run_script_for_compat("""
- var x = nsIPrivateBrowsingService;
+ var x = "nsIPrivateBrowsingService";
""")
self.assert_silent()
self.assert_compat_error(type_="notice")
def test_decode_image_data(self):
self.run_script_for_compat("""
- var x = decodeImageData;
+ var x = "decodeImageData";
""")
self.assert_silent()
self.assert_compat_warning(type_="notice")
def test_decode_image_data(self):
self.run_script_for_compat("""
- var x = nsIDOMNSEditableElement;
+ var x = "nsIDOMNSEditableElement";
""")
self.assert_silent()
self.assert_compat_warning(type_="notice")
+
+ def test_profile(self):
+ self.run_script_for_compat("""
+ var x = "nsIProfile";
+ """)
+ self.assert_silent()
+ self.assert_compat_error(type_="notice")
@@ -852,6 +852,7 @@ class Gecko20RegexTests(CompatRegexTestHelper):
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"
EDITABLE_LINK = "https://bugzilla.mozilla.org/show_bug.cgi?id=827546"
+ PROFILE_LINK = "https://bugzilla.mozilla.org/show_bug.cgi?id=807757"
def js_tests(self):
@@ -887,6 +888,15 @@ def js_tests(self):
compat_type="warning", log_function=self.err.notice)
+ yield self.get_test_bug(
+ 807757, "nsIProfile",
+ "`nsIProfile` and `nsIProfileChangeStatus` have been removed.",
+ "`nsIProfile` and `nsIProfileChangeStatus` have been removed "
+ "because they weren't in use anymore. See {0} for more "
+ "information.".format(self.PROFILE_LINK),
+ compat_type="error", log_function=self.err.notice)
+
+
@register_generator
class Thunderbird7RegexTests(CompatRegexTestHelper):
"""Regex tests for the Thunderbird 7 update."""

0 comments on commit 2473d3c

Please sign in to comment.