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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/named-constructor-prototype-chain.html

Issue 2647643002: Fix V8 bindings for named constructors to set prototype object correctly (Closed)
Patch Set: Created 3 years, 11 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 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 test(function(t)
6 {
7 assert_equals(Image.prototype, HTMLImageElement.prototype, "Image.prototype is same as HTMLImageElement.prototype");
8 assert_equals(new Image().__proto__, HTMLImageElement.prototype, "Image __pr oto__ is HTMLImageElement prototype ");
9 assert_not_equals(Image.prototype.__proto__, HTMLImageElement.prototype, "Im age.prototype __proto__ is not HTMLImageElement prototype");
Yuki 2017/01/19 09:57:28 We know that Image.prototype.__proto__ must be HTM
sashab 2017/01/20 04:37:05 Done.
10 }, "NamedConstructor creates the correct object structure.");
11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698