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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGSVGElement-no-op-methods.html

Issue 1516553002: Remove deprecation messages for no-ops that are left in the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update tests Created 5 years 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
Index: third_party/WebKit/LayoutTests/svg/dom/SVGSVGElement-no-op-methods.html
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGSVGElement-no-op-methods.html b/third_party/WebKit/LayoutTests/svg/dom/SVGSVGElement-no-op-methods.html
new file mode 100644
index 0000000000000000000000000000000000000000..3c3942b566789c8f6f8d34f55129d46c1cd0a8fa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGSVGElement-no-op-methods.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<title>SVGSVGElement no-op methods</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
+
+ assert_equals(svg.suspendRedraw.length, 1);
+ assert_throws(new TypeError(), function() {
+ svg.suspendRedraw();
+ });
+ svg.suspendRedraw(0);
+
+ assert_equals(svg.unsuspendRedraw.length, 1);
+ assert_throws(new TypeError(), function() {
+ svg.unsuspendRedraw();
+ });
+ svg.unsuspendRedraw(0);
+
+ assert_equals(svg.unsuspendRedrawAll.length, 0);
+ svg.unsuspendRedrawAll();
+
+ assert_equals(svg.forceRedraw.length, 0);
+ svg.forceRedraw();
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698