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

Unified Diff: trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain.html

Issue 292743003: Revert 174142 "Move popular DOM attributes to prototype chains" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain.html
===================================================================
--- trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain.html (revision 174277)
+++ trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain.html (working copy)
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-var div = document.createElement("div");
-shouldBeFalse('div.hasOwnProperty("id")');
-shouldBeTrue('div.__proto__.__proto__.__proto__.hasOwnProperty("id")');
-
-var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'id');
-shouldBeTrue('desc.get instanceof Function');
-shouldBeTrue('desc.set instanceof Function');
-shouldBeTrue('desc.enumerable');
-shouldBeTrue('desc.configurable');
-
-shouldThrow('xhr = new XMLHttpRequest(); xhr.__proto__ = HTMLDivElement.prototype; xhr.id');
-shouldThrow('obj = Object.create(div); obj.id');
-
-desc = Object.getOwnPropertyDescriptor(Element.prototype, 'id');
-shouldThrow('desc.get.call({})');
-
-var a = document.createElement('a');
-shouldBeUndefined('desc.set.call(a, "abc")');
-shouldBeEqualToString('desc.get.call(a)', 'abc');
-</script>
-</body>
-</html>
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/dom-attribute-on-prototype-chain-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698