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

Side by Side Diff: LayoutTests/fast/js/script-tests/global-function-resolve.js

Issue 21263002: Add back captureEvents and releaseEvents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
1 description("Test to make sure cached lookups on the global object are performed correctly."); 1 description("Test to make sure cached lookups on the global object are performed correctly.");
2 2
3 var functionNames = [ 3 var functionNames = [
4 'addEventListener', 4 'addEventListener',
5 'alert', 5 'alert',
6 'captureEvents',
6 'clearInterval', 7 'clearInterval',
7 'clearTimeout', 8 'clearTimeout',
8 'clientInformation', 9 'clientInformation',
9 'close', 10 'close',
10 'closed', 11 'closed',
11 'confirm', 12 'confirm',
12 'console', 13 'console',
13 'crypto', 14 'crypto',
14 'defaultStatus', 15 'defaultStatus',
15 'defaultstatus', 16 'defaultstatus',
(...skipping 16 matching lines...) Expand all
32 'navigator', 33 'navigator',
33 'open', 34 'open',
34 'openDatabase', 35 'openDatabase',
35 'opener', 36 'opener',
36 'outerHeight', 37 'outerHeight',
37 'outerWidth', 38 'outerWidth',
38 'pageXOffset', 39 'pageXOffset',
39 'pageYOffset', 40 'pageYOffset',
40 'parent', 41 'parent',
41 'prompt', 42 'prompt',
43 'releaseEvents',
42 'removeEventListener', 44 'removeEventListener',
43 'resizeBy', 45 'resizeBy',
44 'resizeTo', 46 'resizeTo',
45 'screen', 47 'screen',
46 'screenLeft', 48 'screenLeft',
47 'screenTop', 49 'screenTop',
48 'screenX', 50 'screenX',
49 'screenY', 51 'screenY',
50 'scroll', 52 'scroll',
51 'scrollBy', 53 'scrollBy',
52 'scrollTo', 54 'scrollTo',
53 'scrollX', 55 'scrollX',
54 'scrollY', 56 'scrollY',
55 'setInterval', 57 'setInterval',
56 'setTimeout', 58 'setTimeout',
57 'showModalDialog', 59 'showModalDialog',
58 'status', 60 'status',
59 'stop', 61 'stop',
60 'window', 62 'window',
61 ]; 63 ];
62 64
63 var cachedFunctions = []; 65 var cachedFunctions = [];
64 for (var i = 0; i < functionNames.length; i++) 66 for (var i = 0; i < functionNames.length; i++)
65 cachedFunctions[i] = new Function("return " + functionNames[i]); 67 cachedFunctions[i] = new Function("return " + functionNames[i]);
66 68
67 for (var i = 0; i < functionNames.length; i++) { 69 for (var i = 0; i < functionNames.length; i++) {
68 shouldBe("cachedFunctions["+i+"]()", functionNames[i]); 70 shouldBe("cachedFunctions["+i+"]()", functionNames[i]);
69 shouldBe("cachedFunctions["+i+"]()", functionNames[i]); 71 shouldBe("cachedFunctions["+i+"]()", functionNames[i]);
70 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698