aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/tools/lint/lint.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/tools/lint/lint.py')
-rw-r--r--tests/wpt/web-platform-tests/tools/lint/lint.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/tools/lint/lint.py b/tests/wpt/web-platform-tests/tools/lint/lint.py
index e4ad323cc8d..1a5ee1c1b17 100644
--- a/tests/wpt/web-platform-tests/tools/lint/lint.py
+++ b/tests/wpt/web-platform-tests/tools/lint/lint.py
@@ -361,6 +361,13 @@ class LayoutTestsRegexp(Regexp):
file_extensions = [".html", ".htm", ".js", ".xht", ".xhtml", ".svg"]
description = "eventSender/testRunner/window.internals used; these are LayoutTests-specific APIs (WebKit/Blink)"
+class SpecialPowersRegexp(Regexp):
+ pattern = b"SpecialPowers"
+ error = "SPECIALPOWERS API"
+ file_extensions = [".html", ".htm", ".js", ".xht", ".xhtml", ".svg"]
+ description = "SpecialPowers used; this is gecko-specific and not supported in wpt"
+
+
regexps = [item() for item in
[TrailingWhitespaceRegexp,
TabsRegexp,
@@ -371,7 +378,8 @@ regexps = [item() for item in
ConsoleRegexp,
GenerateTestsRegexp,
PrintRegexp,
- LayoutTestsRegexp]]
+ LayoutTestsRegexp,
+ SpecialPowersRegexp]]
def check_regexp_line(repo_root, path, f, css_mode):
errors = []