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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py

Issue 2329263002: Run format-webkitpy and fix long lines. (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py b/third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py
index d4de765cd8f999e5382451cff28982b2395232cb..44cab643b97512229224e3a40088d7bbaf1761c1 100755
--- a/third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/bindings/collect_idls_into_json_test.py
@@ -12,7 +12,25 @@ testdata_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'testdata')
_FILE = os.path.join(testdata_path, 'test_filepath.txt')
_KEY_SET = set(['Operations', 'Name', 'FilePath', 'Inherit', 'Consts', 'ExtAttributes', 'Attributes'])
-_PARTIAL = {'Node': {'Operations': [], 'Name': 'Node', 'FilePath': 'Source/core/timing/WorkerGlobalScopePerformance.idl', 'Inherit': [], 'Consts': [], 'ExtAttributes': [], 'Attributes': [{'Static': False, 'Readonly': True, 'Type': 'WorkerPerformance', 'Name': 'performance', 'ExtAttributes': []}]}}
+_PARTIAL = {
+ 'Node': {
+ 'Operations': [],
+ 'Name': 'Node',
+ 'FilePath': 'Source/core/timing/WorkerGlobalScopePerformance.idl',
+ 'Inherit': [],
+ 'Consts': [],
+ 'ExtAttributes': [],
+ 'Attributes': [
+ {
+ 'Static': False,
+ 'Readonly': True,
+ 'Type': 'WorkerPerformance',
+ 'Name': 'performance',
+ 'ExtAttributes': []
+ }
+ ]
+ }
+}
class TestFunctions(unittest.TestCase):
@@ -105,8 +123,13 @@ class TestFunctions(unittest.TestCase):
def test_merge_partial_dicts(self):
key_name = self.definition.GetName()
- merged = collect_idls_into_json.merge_partial_dicts({key_name: collect_idls_into_json.interface_node_to_dict(self.definition)}, _PARTIAL)[key_name]['Partial_FilePaths']
- expected = ['Source/core/timing/WorkerGlobalScopePerformance.idl', 'Source/core/timing/WorkerGlobalScopePerformance.idl', 'Source/core/timing/WorkerGlobalScopePerformance.idl']
+ merged = collect_idls_into_json.merge_partial_dicts(
+ {key_name: collect_idls_into_json.interface_node_to_dict(self.definition)}, _PARTIAL)[key_name]['Partial_FilePaths']
+ expected = [
+ 'Source/core/timing/WorkerGlobalScopePerformance.idl',
+ 'Source/core/timing/WorkerGlobalScopePerformance.idl',
+ 'Source/core/timing/WorkerGlobalScopePerformance.idl',
+ ]
self.assertEqual(merged, expected)

Powered by Google App Engine
This is Rietveld 408576698