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

Unified Diff: test/inspector/runtime/evaluate-with-generate-preview.js

Issue 2526073002: Previews should exclude a property if its name is a symbol (Closed)
Patch Set: rebase Created 4 years 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: test/inspector/runtime/evaluate-with-generate-preview.js
diff --git a/test/inspector/runtime/evaluate-with-generate-preview.js b/test/inspector/runtime/evaluate-with-generate-preview.js
index 5e747d5ab9ea695c78d1e4bf903f18438ecdea68..56bc1cdac379f8944c48696f96b1e39bf698a890 100644
--- a/test/inspector/runtime/evaluate-with-generate-preview.js
+++ b/test/inspector/runtime/evaluate-with-generate-preview.js
@@ -6,35 +6,39 @@ print("Tests that Runtime.evaluate will generate correct previews.");
InspectorTest.addScript(
`
+var sym = Symbol(123);
+
Object.prototype[0] = 'default-first';
-var obj = {p1: {a:1}, p2: {b:'foo'}};
+var obj = {p1: {a:1}, p2: {b:'foo'}, p3: sym};
Object.defineProperties(obj, {
- p3: {
+ p4: {
get() { return 2 }
},
- p4: {
+ p5: {
set(x) { return x }
},
- p5: {
+ p6: {
get() { return 2 },
set(x) { return x }
}
});
+obj[sym] = 'baz';
Array.prototype[0] = 'default-first';
-var arr = [,, 1, [2]];
+var arr = [,, 1, [2], sym];
Object.defineProperties(arr, {
- 4: {
+ 5: {
get() { return 2 }
},
- 5: {
+ 6: {
set(x) { return x }
},
- 6: {
+ 7: {
get() { return 2 },
set(x) { return x }
}
});
+arr[sym] = 'baz';
`);
InspectorTest.runTestSuite([
« no previous file with comments | « src/inspector/injected-script-source.js ('k') | test/inspector/runtime/evaluate-with-generate-preview-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698