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

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: Rebaselined tests Created 3 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
tkent 2017/03/02 06:32:30 Please do not add new test to fast/dom/. Is Layou
2 <!DOCTYPE html>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 test(function(t)
7 {
8 assert_equals(Image.name, "Image", "Image name should be Image (not HTMLImag eElement)");
9 assert_equals(Image.__proto__, Function.prototype, "Image __proto__ is Funct ion prototype");
10 assert_equals(Image.prototype, HTMLImageElement.prototype, "Image.prototype is same as HTMLImageElement.prototype");
11 assert_equals(new Image().__proto__, HTMLImageElement.prototype, "Image __pr oto__ is HTMLImageElement prototype ");
12 assert_equals(Image.prototype.__proto__, HTMLElement.prototype, "Image.proto type __proto__ is HTMLElement prototype");
13 }, "NamedConstructor creates the correct object structure.");
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698