summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
authoradamk <adamk@chromium.org>2016-03-03 15:59:58 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-04 00:02:43 +0000
commit0cf9f97e579fc4c696f1af0255a86d48e41cc0fa (patch)
tree9449599b63161a9ce397209b679db376ff3e8c10 /extensions/renderer
parent83452da8980b71496d45462d633ef0498666d835 (diff)
downloadchromium_src-0cf9f97e579fc4c696f1af0255a86d48e41cc0fa.zip
chromium_src-0cf9f97e579fc4c696f1af0255a86d48e41cc0fa.tar.gz
chromium_src-0cf9f97e579fc4c696f1af0255a86d48e41cc0fa.tar.bz2
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}
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/activity_log_converter_strategy_unittest.cc2
1 files changed, 1 insertions, 1 deletions
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"
"};"
"})();";