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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/common/canvas-tests.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 unified diff | Download patch
OLDNEW
1 function _valToString(val) 1 function _valToString(val)
2 { 2 {
3 if (val === undefined || val === null) 3 if (val === undefined || val === null)
4 return '[' + typeof(val) + ']'; 4 return '[' + typeof(val) + ']';
5 return val.toString() + '[' + typeof(val) + ']'; 5 return val.toString() + '[' + typeof(val) + ']';
6 } 6 }
7 7
8 function _assert(cond, text) 8 function _assert(cond, text)
9 { 9 {
10 assert_true(!!cond, text); 10 assert_true(!!cond, text);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 var w = imagedata.width, h = imagedata.height, d = imagedata.data; 77 var w = imagedata.width, h = imagedata.height, d = imagedata.data;
78 for (var i = 0; i < h; ++i) { 78 for (var i = 0; i < h; ++i) {
79 for (var j = 0; j < w; ++j) { 79 for (var j = 0; j < w; ++j) {
80 testColor(d, 4 * (w * i + j) + 0, 0); 80 testColor(d, 4 * (w * i + j) + 0, 0);
81 testColor(d, 4 * (w * i + j) + 1, 255); 81 testColor(d, 4 * (w * i + j) + 1, 255);
82 testColor(d, 4 * (w * i + j) + 2, 0); 82 testColor(d, 4 * (w * i + j) + 2, 0);
83 testColor(d, 4 * (w * i + j) + 3, 255); 83 testColor(d, 4 * (w * i + j) + 3, 255);
84 } 84 }
85 } 85 }
86 } 86 }
87
88 function addCrossOriginYellowImage()
89 {
90 var img = new Image();
91 img.id = "yellow.png";
92 img.className = "resource";
93 img.src = get_host_info().HTTP_REMOTE_ORIGIN + "/images/yellow.png";
94 document.body.appendChild(img);
95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698