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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js

Issue 2303013002: Add UMA metric to track usage of sending a mousedown to select elements. (Closed)
Patch Set: W3C auto test import CL. 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/resources/testharness.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
index 91dfab58c2b31e507092a71151f632fceb434825..5b924b10948fd885e6941cb3d76a18b4cc16c1a7 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/resources/testharness.js
@@ -523,11 +523,9 @@ policies and contribution forms [3].
function promise_test(func, name, properties) {
var test = async_test(name, properties);
// If there is no promise tests queue make one.
- test.step(function() {
- if (!tests.promise_tests) {
- tests.promise_tests = Promise.resolve();
- }
- });
+ if (!tests.promise_tests) {
+ tests.promise_tests = Promise.resolve();
+ }
tests.promise_tests = tests.promise_tests.then(function() {
return Promise.resolve(test.step(func, test, test))
.then(

Powered by Google App Engine
This is Rietveld 408576698