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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6 <object id="plugin" type="application/x-blink-deprecated-test-plugin"></object>
7 <script>
8 description("This tests checks that hasOwnProperty return true on plugin's gette rs that return undefined");
9
10 // The plugin implements testGetUndefined the same way as the following:
11 function ReferenceObject () {
12 Object.defineProperties(this, {
13 "testGetUndefined": { get: function () { return undefined; } }
14 });
15 }
16
17 shouldBeTrue('new ReferenceObject().hasOwnProperty("testGetUndefined")');
18 shouldBeTrue('document.getElementById("plugin").hasOwnProperty("testGetUndefined ")');
19 </script>
20 </body>
21 </html>
OLDNEW
« 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