From 0cf9f97e579fc4c696f1af0255a86d48e41cc0fa Mon Sep 17 00:00:00 2001 From: adamk Date: Thu, 3 Mar 2016 15:59:58 -0800 Subject: Prepare ActivityLogConverterStrategyTest for ES2015 Function name reform One test case in this test is trying to test the output for an anonymous function, but in ES2015 functions assigned to properties in object literals are given the name of the property. Wrapping the function literal in a comma expression avoids the name inference, so that this test will continue to pass once V8 ships the new semantics. BUG=v8:3699 Review URL: https://codereview.chromium.org/1760943003 Cr-Commit-Position: refs/heads/master@{#379144} --- extensions/renderer/activity_log_converter_strategy_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/renderer') diff --git a/extensions/renderer/activity_log_converter_strategy_unittest.cc b/extensions/renderer/activity_log_converter_strategy_unittest.cc index 1c089bf..9237cad 100644 --- a/extensions/renderer/activity_log_converter_strategy_unittest.cc +++ b/extensions/renderer/activity_log_converter_strategy_unittest.cc @@ -117,7 +117,7 @@ TEST_F(ActivityLogConverterStrategyTest, ConversionTest) { "empty_dictionary: {}," "list: [ \"monkey\", \"balls\" ]," "empty_list: []," - "function: function() {}," + "function: (0, function() {})," // ensure function is anonymous "named_function: foo" "};" "})();"; -- cgit v1.1