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

Unified Diff: LayoutTests/fast/html/element-offset.html

Issue 1231533002: Deprecate Element.offsetParent/offsetTop/offsetLeft/offsetWidth/offsetHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added tests Created 5 years, 5 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 | LayoutTests/fast/html/element-offset-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/element-offset.html
diff --git a/LayoutTests/fast/html/element-offset.html b/LayoutTests/fast/html/element-offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..8b584d2a8d6f29e9a30fa1c7569a5a58356db2d2
--- /dev/null
+++ b/LayoutTests/fast/html/element-offset.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+test(function () {
+ var element = document.createElementNS(null, 'x');
+ element.offsetParent;
+ element.offsetTop;
+ element.offsetLeft;
+ element.offsetWidth;
+ element.offsetHeight;
+ }, "element.offset*() should throw deprecation warning");
+
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/html/element-offset-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698