| Index: telemetry/telemetry/util/js_template_unittest.py
|
| diff --git a/telemetry/telemetry/util/js_template_unittest.py b/telemetry/telemetry/util/js_template_unittest.py
|
| index c3d698aef975bfcb585b513f3ce6a14e759be19c..b233a8ab1a256a818dbe465aaf5590398a7b0be1 100644
|
| --- a/telemetry/telemetry/util/js_template_unittest.py
|
| +++ b/telemetry/telemetry/util/js_template_unittest.py
|
| @@ -29,6 +29,12 @@
|
| var_name='foo', x='bar', y=None),
|
| 'var foo = "bar" + null;')
|
|
|
| + def testRenderWithArgumentExpansion(self):
|
| + self.assertEquals(
|
| + js_template.Render(
|
| + '{{ @f }}({{ *args }})', f='foo', args=(1, 'hi!', None)),
|
| + 'foo(1, "hi!", null)')
|
| +
|
| def testRenderRaisesWithUnknownIdentifier(self):
|
| with self.assertRaises(KeyError):
|
| js_template.Render('foo({{ some_name }})', another_name='bar')
|
|
|