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

Unified Diff: LayoutTests/inspector-protocol/runtime/runtime-getProperties.html

Issue 339363002: Fix invalid syntax for JS setters in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: LayoutTests/inspector-protocol/runtime/runtime-getProperties.html
diff --git a/LayoutTests/inspector-protocol/runtime/runtime-getProperties.html b/LayoutTests/inspector-protocol/runtime/runtime-getProperties.html
index c5e06c23c2398bd99515b3d2f8753229a0fede08..461e296d590f8a3257b99b37930a3257c6d4677e 100644
--- a/LayoutTests/inspector-protocol/runtime/runtime-getProperties.html
+++ b/LayoutTests/inspector-protocol/runtime/runtime-getProperties.html
@@ -91,7 +91,7 @@ function test()
function callbackStartNotOwn()
{
// Create an wrapper object with additional property.
- var expression = "({ a: 2, set b() {}, get b() {return 5;}, __proto__: { a: 3, c: 4, get d() {return 6;} }})";
+ var expression = "({ a: 2, set b(_) {}, get b() {return 5;}, __proto__: { a: 3, c: 4, get d() {return 6;} }})";
return { command: "Runtime.evaluate", params: {expression: expression}, callback: callbackEvalNotOwn };
}
@@ -116,7 +116,7 @@ function test()
function callbackStartAccessorsOnly()
{
// Create an wrapper object with additional property.
- var expression = "({ a: 2, set b() {}, get b() {return 5;}, c: 'c', set d(){} })";
+ var expression = "({ a: 2, set b(_) {}, get b() {return 5;}, c: 'c', set d(_){} })";
return { command: "Runtime.evaluate", params: {expression: expression}, callback: callbackEvalAccessorsOnly };
}
« no previous file with comments | « LayoutTests/fast/js/script-tests/reserved-words-as-property.js ('k') | LayoutTests/inspector/console/console-eval-scoped.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698