Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: tools/json_schema_compiler/model.py

Issue 23478003: Check and canonicalize CSS selectors before registering PageStateMatchers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix problems kalman noticed Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 50a9c581403ec992d64fe5c25c69c3aa5ea93057..082fbc60f85910a71bcdb5c5d4ea94423bdeb8e7 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -173,6 +173,7 @@ class Type(object):
for i, choice in enumerate(json['choices'])]
elif json_type == 'object':
if not (
+ 'isInstanceOf' in json or
'properties' in json or
'additionalProperties' in json or
'functions' in json or

Powered by Google App Engine
This is Rietveld 408576698