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

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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 if (!window.testRunner) {
5 document.write("This test does not work in manual mode.");
6 } else {
7 testRunner.dumpAsText()
8 testRunner.waitUntilDone();
9 }
10
11 function onLoad() {
12 var plugin = document.getElementById("test");
13 plugin.setAttribute("type", "application/x-blink-deprecated-test-plugin");
14
15 function TestObject () {
16 Object.defineProperties(this, {
17 "testprop": { get: function () { return undefined; } }
dcheng 2016/03/21 17:29:21 If you rebase, can you just use testObject instead
Julien Isorce Samsung 2016/03/21 18:02:56 Do you mean renaming "testprop" to "testObject" ev
dcheng 2016/03/21 18:09:15 https://codereview.chromium.org/1814093003 recentl
18 });
19 }
20
21 var ref = new TestObject;
22
23 if (ref.hasOwnProperty("testprop") === plugin.hasOwnProperty("testprop") == true)
24 document.getElementById('result').innerHTML = 'SUCCESS';
25
26 testRunner.notifyDone();
27 }
28 </script>
29 </head>
30 <body onload="onLoad()">
31 <div>This tests checks that hasOwnProperty return true on plugin's getters that return undefined</div>
32 <object id="test" type="application/x-blink-deprecated-test-plugin"></object>
33 <div id="result">FAILURE</div>
34 </body>
35 </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