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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js

Issue 2323113002: Revert "Import wpt@65954a35b4e0a5cee1f4839271ba0e44f187c0a6" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js
index e375a0f8741788984f9c7be658a3b88c7396c0ff..5ba03082a9cd65bd7ae916ad99d877e879896484 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/testcommon.js
@@ -28,22 +28,15 @@ if (!window.assert_times_equal) {
// creates div element, appends it to the document body and
// removes the created element during test cleanup
function createDiv(test, doc) {
- return createElement(test, 'div', doc);
-}
-
-// creates element of given tagName, appends it to the document body and
-// removes the created element during test cleanup
-// if tagName is null or undefined, returns div element
-function createElement(test, tagName, doc) {
if (!doc) {
doc = document;
}
- var element = doc.createElement(tagName || 'div');
- doc.body.appendChild(element);
+ var div = doc.createElement('div');
+ doc.body.appendChild(div);
test.add_cleanup(function() {
- element.remove();
+ div.remove();
});
- return element;
+ return div;
}
// Creates a style element with the specified rules, appends it to the document

Powered by Google App Engine
This is Rietveld 408576698