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

Unified Diff: third_party/WebKit/LayoutTests/plugins/plugin-scriptable.html

Issue 1813823002: Handle the case where the v8 scriptable object has a property defined with value undefined. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add doc and use v8CallBoolean instead of FromJust() Created 4 years, 9 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: third_party/WebKit/LayoutTests/plugins/plugin-scriptable.html
diff --git a/third_party/WebKit/LayoutTests/plugins/plugin-scriptable.html b/third_party/WebKit/LayoutTests/plugins/plugin-scriptable.html
new file mode 100644
index 0000000000000000000000000000000000000000..48e4944a2526cb70c65bd6a73131ed85845dd056
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/plugins/plugin-scriptable.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body>
+<object id="plugin" type="application/x-blink-deprecated-test-plugin"></object>
+<script>
+description("This tests checks that hasOwnProperty return true on plugin's getters that return undefined");
+
+// The plugin implements testGetUndefined the same way as the following:
+function ReferenceObject () {
+ Object.defineProperties(this, {
+ "testGetUndefined": { get: function () { return undefined; } }
+ });
+}
+
+shouldBeTrue('new ReferenceObject().hasOwnProperty("testGetUndefined")');
+shouldBeTrue('document.getElementById("plugin").hasOwnProperty("testGetUndefined")');
+</script>
+</body>
+</html>
« no previous file with comments | « ppapi/tests/blink_deprecated_test_plugin.cc ('k') | third_party/WebKit/LayoutTests/plugins/plugin-scriptable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698