Add ability for NetLogLogger to gather data from more than just NetLog
[chromium-blink-merge.git] / ui / file_manager / gallery / js / image_editor / test_util.js
blob8158e0032c4b2c6ccb7ace36275d418f11876038
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 'use strict';
6 /**
7 * Creates a sample canvas.
8 * @return {HTMLCanvasElement}
9 */
10 function getSampleCanvas() {
11 var canvas = document.createElement('canvas');
12 canvas.width = 1920;
13 canvas.height = 1080;
15 var ctx = canvas.getContext('2d');
16 ctx.fillStyle = '#000000';
17 for (var i = 0; i < 10; i++) {
18 ctx.fillRect(i * 30, i * 30, 20, 20);
21 return canvas;