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

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

Issue 54933002: Enable ActivityLogApiTest.TriggerEvent and update test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The extension ID for the .../activity_log_private/friend extension, which 5 // The extension ID for the .../activity_log_private/friend extension, which
6 // this extension communicates with. This should correspond to the public key 6 // this extension communicates with. This should correspond to the public key
7 // defined in .../activity_log_private/friend/manifest.json. 7 // defined in .../activity_log_private/friend/manifest.json.
8 var FRIEND_EXTENSION_ID = 'pknkgggnfecklokoggaggchhaebkajji'; 8 var FRIEND_EXTENSION_ID = 'pknkgggnfecklokoggaggchhaebkajji';
9 9
10 // Setup the test cases. 10 // Setup the test cases.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 'Location.replace', 224 'Location.replace',
225 // Dom mutations 225 // Dom mutations
226 'Document.createElement', 226 'Document.createElement',
227 'Document.createElement', 227 'Document.createElement',
228 'Node.appendChild', 228 'Node.appendChild',
229 'Node.insertBefore', 229 'Node.insertBefore',
230 'Node.replaceChild', 230 'Node.replaceChild',
231 //'Document.location', 231 //'Document.location',
232 'HTMLDocument.write', 232 'HTMLDocument.write',
233 'HTMLDocument.writeln', 233 'HTMLDocument.writeln',
234 'HTMLElement.innerHTML', 234 'Element.innerHTML',
235 // Navigator access 235 // Navigator access
236 'Window.navigator', 236 'Window.navigator',
237 'Geolocation.getCurrentPosition', 237 'Geolocation.getCurrentPosition',
238 'Geolocation.watchPosition', 238 'Geolocation.watchPosition',
239 // Web store access - session storage 239 // Web store access - session storage
240 'Window.sessionStorage', 240 'Window.sessionStorage',
241 'Storage.setItem', 241 'Storage.setItem',
242 'Storage.getItem', 242 'Storage.getItem',
243 'Storage.removeItem', 243 'Storage.removeItem',
244 'Storage.clear', 244 'Storage.clear',
(...skipping 20 matching lines...) Expand all
265 ]; 265 ];
266 266
267 // add the hook activity 267 // add the hook activity
268 hookNames = ['onclick', 'ondblclick', 'ondrag', 'ondragend', 'ondragenter', 268 hookNames = ['onclick', 'ondblclick', 'ondrag', 'ondragend', 'ondragenter',
269 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'oninput', 269 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'oninput',
270 'onkeydown', 'onkeypress', 'onkeyup', 'onmousedown', 270 'onkeydown', 'onkeypress', 'onkeyup', 'onmousedown',
271 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 271 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout',
272 'onmouseover', 'onmouseup', 'onmousewheel']; 272 'onmouseover', 'onmouseup', 'onmousewheel'];
273 273
274 for (var i = 0; i < hookNames.length; i++) { 274 for (var i = 0; i < hookNames.length; i++) {
275 domExpectedActivity.push('HTMLElement.' + hookNames[i]); 275 domExpectedActivity.push('HTMLElement.' + hookNames[i]);
felt 2013/10/31 17:32:18 to double check, this ONLY impacts .innerHTML? (me
davve 2013/10/31 19:03:10 It impacts innerHTML and outerHTML, neither of whi
276 domExpectedActivity.push('Document.' + hookNames[i]); 276 domExpectedActivity.push('Document.' + hookNames[i]);
277 domExpectedActivity.push('Window.' + hookNames[i]); 277 domExpectedActivity.push('Window.' + hookNames[i]);
278 } 278 }
279 279
280 // Close the tab. 280 // Close the tab.
281 domExpectedActivity.push('tabs.remove'); 281 domExpectedActivity.push('tabs.remove');
282 282
283 testCases.push({ 283 testCases.push({
284 func: function triggerDOMChangesOnTabsUpdated() { 284 func: function triggerDOMChangesOnTabsUpdated() {
285 chrome.runtime.sendMessage(FRIEND_EXTENSION_ID, 285 chrome.runtime.sendMessage(FRIEND_EXTENSION_ID,
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 enabledTestCase[activityListForOS]; 494 enabledTestCase[activityListForOS];
495 } 495 }
496 enabledTestCases.push(enabledTestCase); 496 enabledTestCases.push(enabledTestCase);
497 } 497 }
498 } 498 }
499 chrome.test.runTests(tests); 499 chrome.test.runTests(tests);
500 }); 500 });
501 } 501 }
502 502
503 setupTestCasesAndRun(); 503 setupTestCasesAndRun();
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698