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

Unified Diff: tools/json_schema_compiler/js_externs_generator_test.py

Issue 2915423002: Externs generation: spit out src/-normalized path in generation messages (Closed)
Patch Set: path comments Created 3 years, 7 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
« no previous file with comments | « tools/json_schema_compiler/js_externs_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/js_externs_generator_test.py
diff --git a/tools/json_schema_compiler/js_externs_generator_test.py b/tools/json_schema_compiler/js_externs_generator_test.py
index 49462b2bbbae847cc4084518460509d5b924c44f..5036257a8ffb2709048d89f279f394f91e661458 100755
--- a/tools/json_schema_compiler/js_externs_generator_test.py
+++ b/tools/json_schema_compiler/js_externs_generator_test.py
@@ -89,12 +89,12 @@ namespace fakeApi {
"""
# The output we expect from our fake idl file.
-expected_output = ("""// Copyright %s The Chromium Authors. All rights reserved.
+expected_output = """// Copyright %s The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file was generated by:
-// %s.
+// tools/json_schema_compiler/compiler.py.
// NOTE: The format of types has changed. 'FooType' is now
// 'chrome.fakeApi.FooType'.
// Please run the closure compiler before committing changes.
@@ -219,7 +219,7 @@ chrome.fakeApi.optionalParam = function(callback) {};
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/fakeApi#event-onTrapDetected
*/
-chrome.fakeApi.onTrapDetected;""" % (datetime.now().year, sys.argv[0]))
+chrome.fakeApi.onTrapDetected;""" % datetime.now().year
fake_json = """// Copyright 2014 The Chromium Authors. All rights reserved.
@@ -296,12 +296,12 @@ fake_json = """// Copyright 2014 The Chromium Authors. All rights reserved.
}
]"""
-json_expected = ("""// Copyright %s The Chromium Authors. All rights reserved.
+json_expected = """// Copyright %s The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file was generated by:
-// %s.
+// tools/json_schema_compiler/compiler.py.
// NOTE: The format of types has changed. 'FooType' is now
// 'chrome.fakeJson.FooType'.
// Please run the closure compiler before committing changes.
@@ -344,8 +344,8 @@ chrome.fakeJson.CrazyEnum = {
* }}
* @see https://developer.chrome.com/extensions/fakeJson#method-funcWithInlineObj
*/
-chrome.fakeJson.funcWithInlineObj = function(inlineObj, callback) {};""" %
- (datetime.now().year, sys.argv[0]))
+chrome.fakeJson.funcWithInlineObj = function(inlineObj, callback) {};""" % (
+ datetime.now().year)
class JsExternGeneratorTest(unittest.TestCase):
« no previous file with comments | « tools/json_schema_compiler/js_externs_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698