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

Side by Side Diff: chrome/test/data/extensions/api_test/canvas_2d/background.js

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionTerminalPrivateApiTest.TerminalTest Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 canvas = document.getElementById("my-canvas");
2 if (canvas) {
3 if (canvas.getContext) {
4 context = canvas.getContext("2d");
5 if (context) {
6 context.fillStyle = 'red';
7 context.fillRect(20, 20, 40, 40);
8 chrome.test.notifyPass();
9 } else {
10 chrome.test.notifyFail("unable to getContext('2d')");
11 }
12 } else {
13 chrome.test.notifyFail("canvas.getContext null");
14 }
15 } else {
16 chrome.test.notifyFail("couldn't find element my-canvas");
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698