| 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):
|
|
|