Skip to content
Browse files

Convert getMessageArray test case to regex

  • Loading branch information...
1 parent fb3113b commit ae12c82ef46b5c36c693d5181ff8507fd53e21dd @mattbasta mattbasta committed
View
19 validator/testcases/javascript/entity_values.py
@@ -242,25 +242,6 @@ def on_open(wrapper, arguments, traverser):
return {"return": on_open}
-@register_entity("nsIConsoleService.getMessageArray")
-def nsIConsoleService_GetMessageArray(traverser):
- traverser.err.notice(
- err_id=("testcases_javascript_entity_values",
- "nsIConsoleService.getMessageArray"),
- notice="`getMessageArray` has changed",
- description="The `getMessageArray` function has changed, and now it "
- "returns the array instead of setting the object passed "
- "as a parameter. See %s for more information." %
- BUGZILLA_BUG % 664695,
- filename=traverser.filename,
- line=traverser.line,
- column=traverser.position,
- context=traverser.context,
- for_appversions=FX19_DEFINITION,
- compatibility_type="error",
- tier=5)
-
-
# Thunderbird 14 IDL changes
@register_entity("nsIMsgPluggableStore.copyMessages")
def nsIMsgPluggableStore_copyMessages(traverser):
View
4 validator/testcases/javascript/predefinedentities.py
@@ -100,10 +100,6 @@
e.get_resource("em:bootstrap") and
"Authors of bootstrapped add-ons must take care to "
"clean up any component registrations at shutdown."}}},
- u"nsIConsoleService":
- {"value":
- {u"getMessageArray":
- entity("nsIConsoleService.getMessageArray")}},
u"nsIDOMNSHTMLElement": entity("nsIDOMNSHTMLElement"),
u"nsIDOMNSHTMLFrameElement": entity("nsIDOMNSHTMLFrameElement"),
u"nsIDNSService": {"value": {u"resolve": entity("nsIDNSService.resolve")}},
View
7 validator/testcases/regex.py
@@ -835,6 +835,13 @@ def js_tests(self):
"require an additional argument to specify a context.",
compat_type="error", log_function=self.err.notice)
+ yield self.get_test_bug(
+ 664695, "getMessageArray",
+ "`nsIConsoleService::getMessageArray` has been changed.",
+ "The `getMessageArray` function has changed, and now it returns "
+ "the array instead of setting the object passed as a parameter.",
+ compat_type="error", log_function=self.err.notice)
+
@register_generator
class Thunderbird7RegexTests(CompatRegexTestHelper):

0 comments on commit ae12c82

Please sign in to comment.
Something went wrong with that request. Please try again.