OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @fileoverview Runs the Polymer Settings tests. */ | 5 /** @fileoverview Runs the Polymer Settings tests. */ |
6 | 6 |
7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
9 | 9 |
10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 CrSettingsAboutPageTest.prototype = { | 182 CrSettingsAboutPageTest.prototype = { |
183 __proto__: CrSettingsBrowserTest.prototype, | 183 __proto__: CrSettingsBrowserTest.prototype, |
184 | 184 |
185 /** @override */ | 185 /** @override */ |
186 browsePreload: 'chrome://md-settings/about_page/about_page.html', | 186 browsePreload: 'chrome://md-settings/about_page/about_page.html', |
187 | 187 |
188 /** @override */ | 188 /** @override */ |
189 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 189 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
190 'test_util.js', | 190 'test_util.js', |
191 'test_browser_proxy.js', | 191 '../test_browser_proxy.js', |
192 'test_lifetime_browser_proxy.js', | 192 'test_lifetime_browser_proxy.js', |
193 'about_page_tests.js', | 193 'about_page_tests.js', |
194 ]), | 194 ]), |
195 }; | 195 }; |
196 | 196 |
197 TEST_F('CrSettingsAboutPageTest', 'AboutPage', function() { | 197 TEST_F('CrSettingsAboutPageTest', 'AboutPage', function() { |
198 settings_about_page.registerTests(); | 198 settings_about_page.registerTests(); |
199 mocha.run(); | 199 mocha.run(); |
200 }); | 200 }); |
201 | 201 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 function CrSettingsFingerprintListTest() {} | 337 function CrSettingsFingerprintListTest() {} |
338 | 338 |
339 CrSettingsFingerprintListTest.prototype = { | 339 CrSettingsFingerprintListTest.prototype = { |
340 __proto__: CrSettingsBrowserTest.prototype, | 340 __proto__: CrSettingsBrowserTest.prototype, |
341 | 341 |
342 /** @override */ | 342 /** @override */ |
343 browsePreload: 'chrome://md-settings/people_page/fingerprint_list.html', | 343 browsePreload: 'chrome://md-settings/people_page/fingerprint_list.html', |
344 | 344 |
345 /** @override */ | 345 /** @override */ |
346 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 346 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
347 'test_browser_proxy.js', | 347 '../test_browser_proxy.js', |
348 'fingerprint_browsertest_chromeos.js', | 348 'fingerprint_browsertest_chromeos.js', |
349 ]), | 349 ]), |
350 }; | 350 }; |
351 | 351 |
352 TEST_F('CrSettingsFingerprintListTest', 'All', function() { | 352 TEST_F('CrSettingsFingerprintListTest', 'All', function() { |
353 mocha.run(); | 353 mocha.run(); |
354 }); | 354 }); |
355 | 355 |
356 /** | 356 /** |
357 * Test fixture for | 357 * Test fixture for |
358 * chrome/browser/resources/settings/people_page/change_picture.html. | 358 * chrome/browser/resources/settings/people_page/change_picture.html. |
359 * This is ChromeOS only. | 359 * This is ChromeOS only. |
360 * @constructor | 360 * @constructor |
361 * @extends {CrSettingsBrowserTest} | 361 * @extends {CrSettingsBrowserTest} |
362 */ | 362 */ |
363 function CrSettingsPeoplePageChangePictureTest() {} | 363 function CrSettingsPeoplePageChangePictureTest() {} |
364 | 364 |
365 CrSettingsPeoplePageChangePictureTest.prototype = { | 365 CrSettingsPeoplePageChangePictureTest.prototype = { |
366 __proto__: CrSettingsBrowserTest.prototype, | 366 __proto__: CrSettingsBrowserTest.prototype, |
367 | 367 |
368 /** @override */ | 368 /** @override */ |
369 browsePreload: 'chrome://md-settings/people_page/change_picture.html', | 369 browsePreload: 'chrome://md-settings/people_page/change_picture.html', |
370 | 370 |
371 /** @override */ | 371 /** @override */ |
372 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 372 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
373 'test_browser_proxy.js', | 373 '../test_browser_proxy.js', |
374 'people_page_change_picture_test.js', | 374 'people_page_change_picture_test.js', |
375 ]), | 375 ]), |
376 }; | 376 }; |
377 | 377 |
378 TEST_F('CrSettingsPeoplePageChangePictureTest', 'All', function() { | 378 TEST_F('CrSettingsPeoplePageChangePictureTest', 'All', function() { |
379 settings_people_page_change_picture.registerTests(); | 379 settings_people_page_change_picture.registerTests(); |
380 mocha.run(); | 380 mocha.run(); |
381 }); | 381 }); |
382 GEN('#else'); // !defined(OS_CHROMEOS) | 382 GEN('#else'); // !defined(OS_CHROMEOS) |
383 /** | 383 /** |
384 * Test fixture for | 384 * Test fixture for |
385 * chrome/browser/resources/settings/people_page/manage_profile.html. | 385 * chrome/browser/resources/settings/people_page/manage_profile.html. |
386 * This is non-ChromeOS only. | 386 * This is non-ChromeOS only. |
387 * @constructor | 387 * @constructor |
388 * @extends {CrSettingsBrowserTest} | 388 * @extends {CrSettingsBrowserTest} |
389 */ | 389 */ |
390 function CrSettingsPeoplePageManageProfileTest() {} | 390 function CrSettingsPeoplePageManageProfileTest() {} |
391 | 391 |
392 CrSettingsPeoplePageManageProfileTest.prototype = { | 392 CrSettingsPeoplePageManageProfileTest.prototype = { |
393 __proto__: CrSettingsBrowserTest.prototype, | 393 __proto__: CrSettingsBrowserTest.prototype, |
394 | 394 |
395 /** @override */ | 395 /** @override */ |
396 browsePreload: 'chrome://md-settings/people_page/manage_profile.html', | 396 browsePreload: 'chrome://md-settings/people_page/manage_profile.html', |
397 | 397 |
398 /** @override */ | 398 /** @override */ |
399 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 399 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
400 'test_browser_proxy.js', | 400 '../test_browser_proxy.js', |
401 'people_page_manage_profile_test.js', | 401 'people_page_manage_profile_test.js', |
402 ]), | 402 ]), |
403 }; | 403 }; |
404 | 404 |
405 TEST_F('CrSettingsPeoplePageManageProfileTest', 'All', function() { | 405 TEST_F('CrSettingsPeoplePageManageProfileTest', 'All', function() { |
406 settings_people_page_manage_profile.registerTests(); | 406 settings_people_page_manage_profile.registerTests(); |
407 mocha.run(); | 407 mocha.run(); |
408 }); | 408 }); |
409 GEN('#endif'); | 409 GEN('#endif'); |
410 | 410 |
411 /** | 411 /** |
412 * Test fixture for | 412 * Test fixture for |
413 * chrome/browser/resources/settings/people_page/people_page.html. | 413 * chrome/browser/resources/settings/people_page/people_page.html. |
414 * @constructor | 414 * @constructor |
415 * @extends {CrSettingsBrowserTest} | 415 * @extends {CrSettingsBrowserTest} |
416 */ | 416 */ |
417 function CrSettingsPeoplePageTest() {} | 417 function CrSettingsPeoplePageTest() {} |
418 | 418 |
419 CrSettingsPeoplePageTest.prototype = { | 419 CrSettingsPeoplePageTest.prototype = { |
420 __proto__: CrSettingsBrowserTest.prototype, | 420 __proto__: CrSettingsBrowserTest.prototype, |
421 | 421 |
422 /** @override */ | 422 /** @override */ |
423 browsePreload: 'chrome://md-settings/people_page/people_page.html', | 423 browsePreload: 'chrome://md-settings/people_page/people_page.html', |
424 | 424 |
425 /** @override */ | 425 /** @override */ |
426 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 426 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
427 'test_browser_proxy.js', | 427 '../test_browser_proxy.js', |
428 'people_page_test.js', | 428 'people_page_test.js', |
429 ]), | 429 ]), |
430 }; | 430 }; |
431 | 431 |
432 TEST_F('CrSettingsPeoplePageTest', 'All', function() { | 432 TEST_F('CrSettingsPeoplePageTest', 'All', function() { |
433 settings_people_page.registerTests(); | 433 settings_people_page.registerTests(); |
434 mocha.run(); | 434 mocha.run(); |
435 }); | 435 }); |
436 | 436 |
437 /** | 437 /** |
438 * Test fixture for | 438 * Test fixture for |
439 * chrome/browser/resources/settings/people_page/sync_page.html. | 439 * chrome/browser/resources/settings/people_page/sync_page.html. |
440 * @constructor | 440 * @constructor |
441 * @extends {CrSettingsBrowserTest} | 441 * @extends {CrSettingsBrowserTest} |
442 */ | 442 */ |
443 function CrSettingsPeoplePageSyncPageTest() {} | 443 function CrSettingsPeoplePageSyncPageTest() {} |
444 | 444 |
445 CrSettingsPeoplePageSyncPageTest.prototype = { | 445 CrSettingsPeoplePageSyncPageTest.prototype = { |
446 __proto__: CrSettingsBrowserTest.prototype, | 446 __proto__: CrSettingsBrowserTest.prototype, |
447 | 447 |
448 /** @override */ | 448 /** @override */ |
449 browsePreload: 'chrome://md-settings/people_page/sync_page.html', | 449 browsePreload: 'chrome://md-settings/people_page/sync_page.html', |
450 | 450 |
451 /** @override */ | 451 /** @override */ |
452 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 452 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
453 'test_browser_proxy.js', | 453 '../test_browser_proxy.js', |
454 'people_page_sync_page_test.js', | 454 'people_page_sync_page_test.js', |
455 ]), | 455 ]), |
456 }; | 456 }; |
457 | 457 |
458 TEST_F('CrSettingsPeoplePageSyncPageTest', 'All', function() { | 458 TEST_F('CrSettingsPeoplePageSyncPageTest', 'All', function() { |
459 settings_people_page_sync_page.registerTests(); | 459 settings_people_page_sync_page.registerTests(); |
460 mocha.run(); | 460 mocha.run(); |
461 }); | 461 }); |
462 | 462 |
463 /** | 463 /** |
(...skipping 28 matching lines...) Expand all Loading... |
492 function CrSettingsResetPageTest() {} | 492 function CrSettingsResetPageTest() {} |
493 | 493 |
494 CrSettingsResetPageTest.prototype = { | 494 CrSettingsResetPageTest.prototype = { |
495 __proto__: CrSettingsBrowserTest.prototype, | 495 __proto__: CrSettingsBrowserTest.prototype, |
496 | 496 |
497 /** @override */ | 497 /** @override */ |
498 browsePreload: 'chrome://md-settings/reset_page/reset_page.html', | 498 browsePreload: 'chrome://md-settings/reset_page/reset_page.html', |
499 | 499 |
500 /** @override */ | 500 /** @override */ |
501 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 501 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
502 'test_browser_proxy.js', | 502 '../test_browser_proxy.js', |
503 'test_lifetime_browser_proxy.js', | 503 'test_lifetime_browser_proxy.js', |
504 'test_reset_browser_proxy.js', | 504 'test_reset_browser_proxy.js', |
505 'reset_page_test.js', | 505 'reset_page_test.js', |
506 ]), | 506 ]), |
507 }; | 507 }; |
508 | 508 |
509 TEST_F('CrSettingsResetPageTest', 'All', function() { | 509 TEST_F('CrSettingsResetPageTest', 'All', function() { |
510 mocha.run(); | 510 mocha.run(); |
511 }); | 511 }); |
512 | 512 |
513 /** | 513 /** |
514 * Test fixture for | 514 * Test fixture for |
515 * chrome/browser/resources/settings/reset_page/reset_profile_banner.html | 515 * chrome/browser/resources/settings/reset_page/reset_profile_banner.html |
516 * @constructor | 516 * @constructor |
517 * @extends {CrSettingsBrowserTest} | 517 * @extends {CrSettingsBrowserTest} |
518 */ | 518 */ |
519 function CrSettingsResetProfileBannerTest() {} | 519 function CrSettingsResetProfileBannerTest() {} |
520 | 520 |
521 CrSettingsResetProfileBannerTest.prototype = { | 521 CrSettingsResetProfileBannerTest.prototype = { |
522 __proto__: CrSettingsBrowserTest.prototype, | 522 __proto__: CrSettingsBrowserTest.prototype, |
523 | 523 |
524 /** @override */ | 524 /** @override */ |
525 browsePreload: 'chrome://md-settings/reset_page/reset_profile_banner.html', | 525 browsePreload: 'chrome://md-settings/reset_page/reset_profile_banner.html', |
526 | 526 |
527 /** @override */ | 527 /** @override */ |
528 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 528 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
529 'test_browser_proxy.js', | 529 '../test_browser_proxy.js', |
530 'test_reset_browser_proxy.js', | 530 'test_reset_browser_proxy.js', |
531 'reset_profile_banner_test.js', | 531 'reset_profile_banner_test.js', |
532 ]), | 532 ]), |
533 }; | 533 }; |
534 | 534 |
535 TEST_F('CrSettingsResetProfileBannerTest', 'All', function() { | 535 TEST_F('CrSettingsResetProfileBannerTest', 'All', function() { |
536 mocha.run(); | 536 mocha.run(); |
537 }); | 537 }); |
538 | 538 |
539 /** | 539 /** |
540 * @constructor | 540 * @constructor |
541 * @extends {CrSettingsBrowserTest} | 541 * @extends {CrSettingsBrowserTest} |
542 */ | 542 */ |
543 function CrSettingsAppearancePageTest() {} | 543 function CrSettingsAppearancePageTest() {} |
544 | 544 |
545 CrSettingsAppearancePageTest.prototype = { | 545 CrSettingsAppearancePageTest.prototype = { |
546 __proto__: CrSettingsBrowserTest.prototype, | 546 __proto__: CrSettingsBrowserTest.prototype, |
547 | 547 |
548 /** @override */ | 548 /** @override */ |
549 browsePreload: 'chrome://md-settings/appearance_page/appearance_page.html', | 549 browsePreload: 'chrome://md-settings/appearance_page/appearance_page.html', |
550 | 550 |
551 /** @override */ | 551 /** @override */ |
552 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 552 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
553 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 553 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
554 'test_browser_proxy.js', | 554 '../test_browser_proxy.js', |
555 'appearance_page_test.js', | 555 'appearance_page_test.js', |
556 ]), | 556 ]), |
557 }; | 557 }; |
558 | 558 |
559 TEST_F('CrSettingsAppearancePageTest', 'All', function() { | 559 TEST_F('CrSettingsAppearancePageTest', 'All', function() { |
560 mocha.run(); | 560 mocha.run(); |
561 }); | 561 }); |
562 | 562 |
563 /** | 563 /** |
564 * @constructor | 564 * @constructor |
565 * @extends {CrSettingsBrowserTest} | 565 * @extends {CrSettingsBrowserTest} |
566 */ | 566 */ |
567 function CrSettingsAppearanceFontsPageTest() {} | 567 function CrSettingsAppearanceFontsPageTest() {} |
568 | 568 |
569 CrSettingsAppearanceFontsPageTest.prototype = { | 569 CrSettingsAppearanceFontsPageTest.prototype = { |
570 __proto__: CrSettingsBrowserTest.prototype, | 570 __proto__: CrSettingsBrowserTest.prototype, |
571 | 571 |
572 /** @override */ | 572 /** @override */ |
573 browsePreload: | 573 browsePreload: |
574 'chrome://md-settings/appearance_page/appearance_fonts_page.html', | 574 'chrome://md-settings/appearance_page/appearance_fonts_page.html', |
575 | 575 |
576 /** @override */ | 576 /** @override */ |
577 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 577 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
578 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 578 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
579 'test_browser_proxy.js', | 579 '../test_browser_proxy.js', |
580 'appearance_fonts_page_test.js', | 580 'appearance_fonts_page_test.js', |
581 ]), | 581 ]), |
582 }; | 582 }; |
583 | 583 |
584 TEST_F('CrSettingsAppearanceFontsPageTest', 'All', function() { | 584 TEST_F('CrSettingsAppearanceFontsPageTest', 'All', function() { |
585 mocha.run(); | 585 mocha.run(); |
586 }); | 586 }); |
587 | 587 |
588 GEN('#if defined(OS_WIN)'); | 588 GEN('#if defined(OS_WIN)'); |
589 /** | 589 /** |
590 * @constructor | 590 * @constructor |
591 * @extends {CrSettingsBrowserTest} | 591 * @extends {CrSettingsBrowserTest} |
592 */ | 592 */ |
593 function CrSettingsChromeCleanupPageTest() {} | 593 function CrSettingsChromeCleanupPageTest() {} |
594 | 594 |
595 CrSettingsChromeCleanupPageTest.prototype = { | 595 CrSettingsChromeCleanupPageTest.prototype = { |
596 __proto__: CrSettingsBrowserTest.prototype, | 596 __proto__: CrSettingsBrowserTest.prototype, |
597 | 597 |
598 /** @override */ | 598 /** @override */ |
599 browsePreload: | 599 browsePreload: |
600 'chrome://md-settings/chrome_cleanup_page/chrome_cleanup_page.html', | 600 'chrome://md-settings/chrome_cleanup_page/chrome_cleanup_page.html', |
601 | 601 |
602 /** @override */ | 602 /** @override */ |
603 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 603 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
604 'test_browser_proxy.js', | 604 '../test_browser_proxy.js', |
605 'chrome_cleanup_page_test.js', | 605 'chrome_cleanup_page_test.js', |
606 ]), | 606 ]), |
607 }; | 607 }; |
608 | 608 |
609 TEST_F('CrSettingsChromeCleanupPageTest', 'All', function() { | 609 TEST_F('CrSettingsChromeCleanupPageTest', 'All', function() { |
610 mocha.run(); | 610 mocha.run(); |
611 }); | 611 }); |
612 GEN('#endif'); | 612 GEN('#endif'); |
613 | 613 |
614 /** | 614 /** |
615 * @constructor | 615 * @constructor |
616 * @extends {CrSettingsBrowserTest} | 616 * @extends {CrSettingsBrowserTest} |
617 */ | 617 */ |
618 function CrSettingsDownloadsPageTest() {} | 618 function CrSettingsDownloadsPageTest() {} |
619 | 619 |
620 CrSettingsDownloadsPageTest.prototype = { | 620 CrSettingsDownloadsPageTest.prototype = { |
621 __proto__: CrSettingsBrowserTest.prototype, | 621 __proto__: CrSettingsBrowserTest.prototype, |
622 | 622 |
623 /** @override */ | 623 /** @override */ |
624 browsePreload: 'chrome://md-settings/downloads_page/downloads_page.html', | 624 browsePreload: 'chrome://md-settings/downloads_page/downloads_page.html', |
625 | 625 |
626 /** @override */ | 626 /** @override */ |
627 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 627 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
628 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 628 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
629 'test_browser_proxy.js', | 629 '../test_browser_proxy.js', |
630 'downloads_page_test.js', | 630 'downloads_page_test.js', |
631 ]), | 631 ]), |
632 }; | 632 }; |
633 | 633 |
634 TEST_F('CrSettingsDownloadsPageTest', 'All', function() { | 634 TEST_F('CrSettingsDownloadsPageTest', 'All', function() { |
635 mocha.run(); | 635 mocha.run(); |
636 }); | 636 }); |
637 | 637 |
638 GEN('#if !defined(OS_CHROMEOS)'); | 638 GEN('#if !defined(OS_CHROMEOS)'); |
639 /** | 639 /** |
640 * Test fixture for chrome/browser/resources/settings/default_browser_page/. | 640 * Test fixture for chrome/browser/resources/settings/default_browser_page/. |
641 * @constructor | 641 * @constructor |
642 * @extends {CrSettingsBrowserTest} | 642 * @extends {CrSettingsBrowserTest} |
643 */ | 643 */ |
644 function CrSettingsDefaultBrowserTest() {} | 644 function CrSettingsDefaultBrowserTest() {} |
645 | 645 |
646 CrSettingsDefaultBrowserTest.prototype = { | 646 CrSettingsDefaultBrowserTest.prototype = { |
647 __proto__: CrSettingsBrowserTest.prototype, | 647 __proto__: CrSettingsBrowserTest.prototype, |
648 | 648 |
649 /** @override */ | 649 /** @override */ |
650 browsePreload: | 650 browsePreload: |
651 'chrome://md-settings/default_browser_page/default_browser_page.html', | 651 'chrome://md-settings/default_browser_page/default_browser_page.html', |
652 | 652 |
653 /** @override */ | 653 /** @override */ |
654 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 654 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
655 'test_browser_proxy.js', | 655 '../test_browser_proxy.js', |
656 'default_browser_browsertest.js', | 656 'default_browser_browsertest.js', |
657 ]), | 657 ]), |
658 }; | 658 }; |
659 | 659 |
660 TEST_F('CrSettingsDefaultBrowserTest', 'All', function() { | 660 TEST_F('CrSettingsDefaultBrowserTest', 'All', function() { |
661 settings_default_browser.registerTests(); | 661 settings_default_browser.registerTests(); |
662 mocha.run(); | 662 mocha.run(); |
663 }); | 663 }); |
664 | 664 |
665 /** | 665 /** |
666 * Test fixture for | 666 * Test fixture for |
667 * chrome/browser/resources/settings/people_page/import_data_dialog.html | 667 * chrome/browser/resources/settings/people_page/import_data_dialog.html |
668 * @constructor | 668 * @constructor |
669 * @extends {CrSettingsBrowserTest} | 669 * @extends {CrSettingsBrowserTest} |
670 */ | 670 */ |
671 function CrSettingsImportDataDialogTest() {} | 671 function CrSettingsImportDataDialogTest() {} |
672 | 672 |
673 CrSettingsImportDataDialogTest.prototype = { | 673 CrSettingsImportDataDialogTest.prototype = { |
674 __proto__: CrSettingsBrowserTest.prototype, | 674 __proto__: CrSettingsBrowserTest.prototype, |
675 | 675 |
676 /** @override */ | 676 /** @override */ |
677 browsePreload: 'chrome://md-settings/people_page/import_data_dialog.html', | 677 browsePreload: 'chrome://md-settings/people_page/import_data_dialog.html', |
678 | 678 |
679 /** @override */ | 679 /** @override */ |
680 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 680 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
681 'test_browser_proxy.js', | 681 '../test_browser_proxy.js', |
682 'import_data_dialog_test.js', | 682 'import_data_dialog_test.js', |
683 ]), | 683 ]), |
684 }; | 684 }; |
685 | 685 |
686 TEST_F('CrSettingsImportDataDialogTest', 'All', function() { | 686 TEST_F('CrSettingsImportDataDialogTest', 'All', function() { |
687 mocha.run(); | 687 mocha.run(); |
688 }); | 688 }); |
689 GEN('#endif'); | 689 GEN('#endif'); |
690 | 690 |
691 /** | 691 /** |
692 * Test fixture for chrome/browser/resources/settings/search_page/. | 692 * Test fixture for chrome/browser/resources/settings/search_page/. |
693 * @constructor | 693 * @constructor |
694 * @extends {CrSettingsBrowserTest} | 694 * @extends {CrSettingsBrowserTest} |
695 */ | 695 */ |
696 function CrSettingsSearchPageTest() {} | 696 function CrSettingsSearchPageTest() {} |
697 | 697 |
698 CrSettingsSearchPageTest.prototype = { | 698 CrSettingsSearchPageTest.prototype = { |
699 __proto__: CrSettingsBrowserTest.prototype, | 699 __proto__: CrSettingsBrowserTest.prototype, |
700 | 700 |
701 /** @override */ | 701 /** @override */ |
702 browsePreload: 'chrome://md-settings/search_page/search_page.html', | 702 browsePreload: 'chrome://md-settings/search_page/search_page.html', |
703 | 703 |
704 /** @override */ | 704 /** @override */ |
705 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 705 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
706 'test_browser_proxy.js', | 706 '../test_browser_proxy.js', |
707 'test_search_engines_browser_proxy.js', | 707 'test_search_engines_browser_proxy.js', |
708 'search_page_test.js', | 708 'search_page_test.js', |
709 ]), | 709 ]), |
710 }; | 710 }; |
711 | 711 |
712 TEST_F('CrSettingsSearchPageTest', 'All', function() { | 712 TEST_F('CrSettingsSearchPageTest', 'All', function() { |
713 settings_search_page.registerTests(); | 713 settings_search_page.registerTests(); |
714 mocha.run(); | 714 mocha.run(); |
715 }); | 715 }); |
716 | 716 |
717 /** | 717 /** |
718 * Test fixture for chrome/browser/resources/settings/search_engines_page/. | 718 * Test fixture for chrome/browser/resources/settings/search_engines_page/. |
719 * @constructor | 719 * @constructor |
720 * @extends {CrSettingsBrowserTest} | 720 * @extends {CrSettingsBrowserTest} |
721 */ | 721 */ |
722 function CrSettingsSearchEnginesTest() {} | 722 function CrSettingsSearchEnginesTest() {} |
723 | 723 |
724 CrSettingsSearchEnginesTest.prototype = { | 724 CrSettingsSearchEnginesTest.prototype = { |
725 __proto__: CrSettingsBrowserTest.prototype, | 725 __proto__: CrSettingsBrowserTest.prototype, |
726 | 726 |
727 /** @override */ | 727 /** @override */ |
728 browsePreload: | 728 browsePreload: |
729 'chrome://md-settings/search_engines_page/search_engines_page.html', | 729 'chrome://md-settings/search_engines_page/search_engines_page.html', |
730 | 730 |
731 /** @override */ | 731 /** @override */ |
732 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 732 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
733 'test_browser_proxy.js', | 733 '../test_browser_proxy.js', |
734 'test_extension_control_browser_proxy.js', | 734 'test_extension_control_browser_proxy.js', |
735 'test_search_engines_browser_proxy.js', | 735 'test_search_engines_browser_proxy.js', |
736 'search_engines_page_test.js', | 736 'search_engines_page_test.js', |
737 ]), | 737 ]), |
738 }; | 738 }; |
739 | 739 |
740 TEST_F('CrSettingsSearchEnginesTest', 'All', function() { | 740 TEST_F('CrSettingsSearchEnginesTest', 'All', function() { |
741 settings_search_engines_page.registerTests(); | 741 settings_search_engines_page.registerTests(); |
742 mocha.run(); | 742 mocha.run(); |
743 }); | 743 }); |
744 | 744 |
745 GEN('#if defined(USE_NSS_CERTS)'); | 745 GEN('#if defined(USE_NSS_CERTS)'); |
746 /** | 746 /** |
747 * Test fixture for chrome/browser/resources/settings/certificate_manager_page/. | 747 * Test fixture for chrome/browser/resources/settings/certificate_manager_page/. |
748 * @constructor | 748 * @constructor |
749 * @extends {CrSettingsBrowserTest} | 749 * @extends {CrSettingsBrowserTest} |
750 */ | 750 */ |
751 function CrSettingsCertificateManagerTest() {} | 751 function CrSettingsCertificateManagerTest() {} |
752 | 752 |
753 CrSettingsCertificateManagerTest.prototype = { | 753 CrSettingsCertificateManagerTest.prototype = { |
754 __proto__: CrSettingsBrowserTest.prototype, | 754 __proto__: CrSettingsBrowserTest.prototype, |
755 | 755 |
756 /** @override */ | 756 /** @override */ |
757 browsePreload: 'chrome://md-settings/certificate_manager_page/' + | 757 browsePreload: 'chrome://md-settings/certificate_manager_page/' + |
758 'certificate_manager_page.html', | 758 'certificate_manager_page.html', |
759 | 759 |
760 /** @override */ | 760 /** @override */ |
761 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 761 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
762 'test_util.js', | 762 'test_util.js', |
763 'test_browser_proxy.js', | 763 '../test_browser_proxy.js', |
764 'certificate_manager_page_test.js', | 764 'certificate_manager_page_test.js', |
765 ]), | 765 ]), |
766 }; | 766 }; |
767 | 767 |
768 TEST_F('CrSettingsCertificateManagerTest', 'All', function() { | 768 TEST_F('CrSettingsCertificateManagerTest', 'All', function() { |
769 certificate_manager_page.registerTests(); | 769 certificate_manager_page.registerTests(); |
770 mocha.run(); | 770 mocha.run(); |
771 }); | 771 }); |
772 GEN('#endif'); | 772 GEN('#endif'); |
773 | 773 |
774 /** | 774 /** |
775 * Test fixture for chrome/browser/resources/settings/privacy_page/. | 775 * Test fixture for chrome/browser/resources/settings/privacy_page/. |
776 * @constructor | 776 * @constructor |
777 * @extends {CrSettingsBrowserTest} | 777 * @extends {CrSettingsBrowserTest} |
778 */ | 778 */ |
779 function CrSettingsPrivacyPageTest() {} | 779 function CrSettingsPrivacyPageTest() {} |
780 | 780 |
781 CrSettingsPrivacyPageTest.prototype = { | 781 CrSettingsPrivacyPageTest.prototype = { |
782 __proto__: CrSettingsBrowserTest.prototype, | 782 __proto__: CrSettingsBrowserTest.prototype, |
783 | 783 |
784 /** @override */ | 784 /** @override */ |
785 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 785 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
786 | 786 |
787 /** @override */ | 787 /** @override */ |
788 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 788 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
789 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 789 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
790 'test_util.js', | 790 'test_util.js', |
791 'test_browser_proxy.js', | 791 '../test_browser_proxy.js', |
792 'test_privacy_page_browser_proxy.js', | 792 'test_privacy_page_browser_proxy.js', |
793 'privacy_page_test.js', | 793 'privacy_page_test.js', |
794 ]), | 794 ]), |
795 }; | 795 }; |
796 | 796 |
797 TEST_F('CrSettingsPrivacyPageTest', 'All', function() { | 797 TEST_F('CrSettingsPrivacyPageTest', 'All', function() { |
798 settings_privacy_page.registerTests(); | 798 settings_privacy_page.registerTests(); |
799 mocha.run(); | 799 mocha.run(); |
800 }); | 800 }); |
801 | 801 |
802 /** | 802 /** |
803 * @constructor | 803 * @constructor |
804 * @extends {CrSettingsBrowserTest} | 804 * @extends {CrSettingsBrowserTest} |
805 */ | 805 */ |
806 function CrSettingsSiteDataDetailsTest() {} | 806 function CrSettingsSiteDataDetailsTest() {} |
807 | 807 |
808 CrSettingsSiteDataDetailsTest.prototype = { | 808 CrSettingsSiteDataDetailsTest.prototype = { |
809 __proto__: CrSettingsBrowserTest.prototype, | 809 __proto__: CrSettingsBrowserTest.prototype, |
810 | 810 |
811 /** @override */ | 811 /** @override */ |
812 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 812 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
813 | 813 |
814 /** @override */ | 814 /** @override */ |
815 commandLineSwitches: [{ | 815 commandLineSwitches: [{ |
816 switchName: 'enable-site-settings', | 816 switchName: 'enable-site-settings', |
817 }], | 817 }], |
818 | 818 |
819 /** @override */ | 819 /** @override */ |
820 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 820 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
821 'test_browser_proxy.js', | 821 '../test_browser_proxy.js', |
822 'test_site_settings_prefs_browser_proxy.js', | 822 'test_site_settings_prefs_browser_proxy.js', |
823 'site_data_details_subpage_tests.js', | 823 'site_data_details_subpage_tests.js', |
824 ]), | 824 ]), |
825 }; | 825 }; |
826 | 826 |
827 TEST_F('CrSettingsSiteDataDetailsTest', 'All', function() { | 827 TEST_F('CrSettingsSiteDataDetailsTest', 'All', function() { |
828 mocha.run(); | 828 mocha.run(); |
829 }); | 829 }); |
830 | 830 |
831 /** | 831 /** |
832 * @constructor | 832 * @constructor |
833 * @extends {CrSettingsBrowserTest} | 833 * @extends {CrSettingsBrowserTest} |
834 */ | 834 */ |
835 function CrSettingsCategoryDefaultSettingTest() {} | 835 function CrSettingsCategoryDefaultSettingTest() {} |
836 | 836 |
837 CrSettingsCategoryDefaultSettingTest.prototype = { | 837 CrSettingsCategoryDefaultSettingTest.prototype = { |
838 __proto__: CrSettingsBrowserTest.prototype, | 838 __proto__: CrSettingsBrowserTest.prototype, |
839 | 839 |
840 /** @override */ | 840 /** @override */ |
841 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 841 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
842 | 842 |
843 /** @override */ | 843 /** @override */ |
844 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 844 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
845 'test_browser_proxy.js', | 845 '../test_browser_proxy.js', |
846 'test_site_settings_prefs_browser_proxy.js', | 846 'test_site_settings_prefs_browser_proxy.js', |
847 'category_default_setting_tests.js', | 847 'category_default_setting_tests.js', |
848 ]), | 848 ]), |
849 }; | 849 }; |
850 | 850 |
851 TEST_F('CrSettingsCategoryDefaultSettingTest', 'All', function() { | 851 TEST_F('CrSettingsCategoryDefaultSettingTest', 'All', function() { |
852 mocha.run(); | 852 mocha.run(); |
853 }); | 853 }); |
854 | 854 |
855 /** | 855 /** |
856 * @constructor | 856 * @constructor |
857 * @extends {CrSettingsBrowserTest} | 857 * @extends {CrSettingsBrowserTest} |
858 */ | 858 */ |
859 function CrSettingsCategorySettingExceptionsTest() {} | 859 function CrSettingsCategorySettingExceptionsTest() {} |
860 | 860 |
861 CrSettingsCategorySettingExceptionsTest.prototype = { | 861 CrSettingsCategorySettingExceptionsTest.prototype = { |
862 __proto__: CrSettingsBrowserTest.prototype, | 862 __proto__: CrSettingsBrowserTest.prototype, |
863 | 863 |
864 /** @override */ | 864 /** @override */ |
865 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 865 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
866 | 866 |
867 /** @override */ | 867 /** @override */ |
868 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 868 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
869 'test_browser_proxy.js', | 869 '../test_browser_proxy.js', |
870 'test_site_settings_prefs_browser_proxy.js', | 870 'test_site_settings_prefs_browser_proxy.js', |
871 'category_setting_exceptions_tests.js', | 871 'category_setting_exceptions_tests.js', |
872 ]), | 872 ]), |
873 }; | 873 }; |
874 | 874 |
875 TEST_F('CrSettingsCategorySettingExceptionsTest', 'All', function() { | 875 TEST_F('CrSettingsCategorySettingExceptionsTest', 'All', function() { |
876 mocha.run(); | 876 mocha.run(); |
877 }); | 877 }); |
878 | 878 |
879 /** | 879 /** |
880 * @constructor | 880 * @constructor |
881 * @extends {CrSettingsBrowserTest} | 881 * @extends {CrSettingsBrowserTest} |
882 */ | 882 */ |
883 function CrSettingsAllSitesTest() {} | 883 function CrSettingsAllSitesTest() {} |
884 | 884 |
885 CrSettingsAllSitesTest.prototype = { | 885 CrSettingsAllSitesTest.prototype = { |
886 __proto__: CrSettingsBrowserTest.prototype, | 886 __proto__: CrSettingsBrowserTest.prototype, |
887 | 887 |
888 /** @override */ | 888 /** @override */ |
889 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 889 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
890 | 890 |
891 /** @override */ | 891 /** @override */ |
892 commandLineSwitches: [{ | 892 commandLineSwitches: [{ |
893 switchName: 'enable-site-settings', | 893 switchName: 'enable-site-settings', |
894 }], | 894 }], |
895 | 895 |
896 /** @override */ | 896 /** @override */ |
897 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 897 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
898 'test_browser_proxy.js', | 898 '../test_browser_proxy.js', |
899 'test_site_settings_prefs_browser_proxy.js', | 899 'test_site_settings_prefs_browser_proxy.js', |
900 'all_sites_tests.js', | 900 'all_sites_tests.js', |
901 ]), | 901 ]), |
902 }; | 902 }; |
903 | 903 |
904 TEST_F('CrSettingsAllSitesTest', 'All', function() { | 904 TEST_F('CrSettingsAllSitesTest', 'All', function() { |
905 mocha.run(); | 905 mocha.run(); |
906 }); | 906 }); |
907 | 907 |
908 /** | 908 /** |
909 * @constructor | 909 * @constructor |
910 * @extends {CrSettingsBrowserTest} | 910 * @extends {CrSettingsBrowserTest} |
911 */ | 911 */ |
912 function CrSettingsSiteDetailsTest() {} | 912 function CrSettingsSiteDetailsTest() {} |
913 | 913 |
914 CrSettingsSiteDetailsTest.prototype = { | 914 CrSettingsSiteDetailsTest.prototype = { |
915 __proto__: CrSettingsBrowserTest.prototype, | 915 __proto__: CrSettingsBrowserTest.prototype, |
916 | 916 |
917 /** @override */ | 917 /** @override */ |
918 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 918 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
919 | 919 |
920 /** @override */ | 920 /** @override */ |
921 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 921 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
922 'test_browser_proxy.js', | 922 '../test_browser_proxy.js', |
923 'test_site_settings_prefs_browser_proxy.js', | 923 'test_site_settings_prefs_browser_proxy.js', |
924 'site_details_tests.js', | 924 'site_details_tests.js', |
925 ]), | 925 ]), |
926 }; | 926 }; |
927 | 927 |
928 TEST_F('CrSettingsSiteDetailsTest', 'All', function() { | 928 TEST_F('CrSettingsSiteDetailsTest', 'All', function() { |
929 mocha.run(); | 929 mocha.run(); |
930 }); | 930 }); |
931 | 931 |
932 /** | 932 /** |
933 * @constructor | 933 * @constructor |
934 * @extends {CrSettingsBrowserTest} | 934 * @extends {CrSettingsBrowserTest} |
935 */ | 935 */ |
936 function CrSettingsSiteDetailsPermissionTest() {} | 936 function CrSettingsSiteDetailsPermissionTest() {} |
937 | 937 |
938 CrSettingsSiteDetailsPermissionTest.prototype = { | 938 CrSettingsSiteDetailsPermissionTest.prototype = { |
939 __proto__: CrSettingsBrowserTest.prototype, | 939 __proto__: CrSettingsBrowserTest.prototype, |
940 | 940 |
941 /** @override */ | 941 /** @override */ |
942 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 942 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
943 | 943 |
944 /** @override */ | 944 /** @override */ |
945 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 945 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
946 'test_browser_proxy.js', | 946 '../test_browser_proxy.js', |
947 'test_site_settings_prefs_browser_proxy.js', | 947 'test_site_settings_prefs_browser_proxy.js', |
948 'site_details_permission_tests.js', | 948 'site_details_permission_tests.js', |
949 ]), | 949 ]), |
950 }; | 950 }; |
951 | 951 |
952 TEST_F('CrSettingsSiteDetailsPermissionTest', 'All', function() { | 952 TEST_F('CrSettingsSiteDetailsPermissionTest', 'All', function() { |
953 mocha.run(); | 953 mocha.run(); |
954 }); | 954 }); |
955 | 955 |
956 /** | 956 /** |
957 * @constructor | 957 * @constructor |
958 * @extends {CrSettingsBrowserTest} | 958 * @extends {CrSettingsBrowserTest} |
959 */ | 959 */ |
960 function CrSettingsSiteListTest() {} | 960 function CrSettingsSiteListTest() {} |
961 | 961 |
962 CrSettingsSiteListTest.prototype = { | 962 CrSettingsSiteListTest.prototype = { |
963 __proto__: CrSettingsBrowserTest.prototype, | 963 __proto__: CrSettingsBrowserTest.prototype, |
964 | 964 |
965 /** @override */ | 965 /** @override */ |
966 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 966 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
967 | 967 |
968 /** @override */ | 968 /** @override */ |
969 commandLineSwitches: [{ | 969 commandLineSwitches: [{ |
970 switchName: 'enable-site-settings', | 970 switchName: 'enable-site-settings', |
971 }], | 971 }], |
972 | 972 |
973 /** @override */ | 973 /** @override */ |
974 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 974 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
975 'test_browser_proxy.js', | 975 '../test_browser_proxy.js', |
976 'test_site_settings_prefs_browser_proxy.js', | 976 'test_site_settings_prefs_browser_proxy.js', |
977 'site_list_tests.js', | 977 'site_list_tests.js', |
978 ]), | 978 ]), |
979 }; | 979 }; |
980 | 980 |
981 TEST_F('CrSettingsSiteListTest', 'SiteList', function() { | 981 TEST_F('CrSettingsSiteListTest', 'SiteList', function() { |
982 mocha.grep('SiteList').run(); | 982 mocha.grep('SiteList').run(); |
983 }); | 983 }); |
984 | 984 |
985 TEST_F('CrSettingsSiteListTest', 'EditExceptionDialog', function() { | 985 TEST_F('CrSettingsSiteListTest', 'EditExceptionDialog', function() { |
(...skipping 11 matching lines...) Expand all Loading... |
997 function CrSettingsZoomLevelsTest() {} | 997 function CrSettingsZoomLevelsTest() {} |
998 | 998 |
999 CrSettingsZoomLevelsTest.prototype = { | 999 CrSettingsZoomLevelsTest.prototype = { |
1000 __proto__: CrSettingsBrowserTest.prototype, | 1000 __proto__: CrSettingsBrowserTest.prototype, |
1001 | 1001 |
1002 /** @override */ | 1002 /** @override */ |
1003 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 1003 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
1004 | 1004 |
1005 /** @override */ | 1005 /** @override */ |
1006 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1006 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1007 'test_browser_proxy.js', | 1007 '../test_browser_proxy.js', |
1008 'test_site_settings_prefs_browser_proxy.js', | 1008 'test_site_settings_prefs_browser_proxy.js', |
1009 'zoom_levels_tests.js', | 1009 'zoom_levels_tests.js', |
1010 ]), | 1010 ]), |
1011 }; | 1011 }; |
1012 | 1012 |
1013 TEST_F('CrSettingsZoomLevelsTest', 'All', function() { | 1013 TEST_F('CrSettingsZoomLevelsTest', 'All', function() { |
1014 mocha.run(); | 1014 mocha.run(); |
1015 }); | 1015 }); |
1016 | 1016 |
1017 /** | 1017 /** |
1018 * @constructor | 1018 * @constructor |
1019 * @extends {CrSettingsBrowserTest} | 1019 * @extends {CrSettingsBrowserTest} |
1020 */ | 1020 */ |
1021 function CrSettingsUsbDevicesTest() {} | 1021 function CrSettingsUsbDevicesTest() {} |
1022 | 1022 |
1023 CrSettingsUsbDevicesTest.prototype = { | 1023 CrSettingsUsbDevicesTest.prototype = { |
1024 __proto__: CrSettingsBrowserTest.prototype, | 1024 __proto__: CrSettingsBrowserTest.prototype, |
1025 | 1025 |
1026 /** @override */ | 1026 /** @override */ |
1027 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 1027 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
1028 | 1028 |
1029 /** @override */ | 1029 /** @override */ |
1030 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1030 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1031 'test_browser_proxy.js', | 1031 '../test_browser_proxy.js', |
1032 'test_site_settings_prefs_browser_proxy.js', | 1032 'test_site_settings_prefs_browser_proxy.js', |
1033 'usb_devices_tests.js', | 1033 'usb_devices_tests.js', |
1034 ]), | 1034 ]), |
1035 }; | 1035 }; |
1036 | 1036 |
1037 TEST_F('CrSettingsUsbDevicesTest', 'All', function() { | 1037 TEST_F('CrSettingsUsbDevicesTest', 'All', function() { |
1038 mocha.run(); | 1038 mocha.run(); |
1039 }); | 1039 }); |
1040 | 1040 |
1041 /** | 1041 /** |
1042 * @constructor | 1042 * @constructor |
1043 * @extends {CrSettingsBrowserTest} | 1043 * @extends {CrSettingsBrowserTest} |
1044 */ | 1044 */ |
1045 function CrSettingsProtocolHandlersTest() {} | 1045 function CrSettingsProtocolHandlersTest() {} |
1046 | 1046 |
1047 CrSettingsProtocolHandlersTest.prototype = { | 1047 CrSettingsProtocolHandlersTest.prototype = { |
1048 __proto__: CrSettingsBrowserTest.prototype, | 1048 __proto__: CrSettingsBrowserTest.prototype, |
1049 | 1049 |
1050 /** @override */ | 1050 /** @override */ |
1051 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 1051 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
1052 | 1052 |
1053 /** @override */ | 1053 /** @override */ |
1054 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1054 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1055 'test_browser_proxy.js', | 1055 '../test_browser_proxy.js', |
1056 'test_site_settings_prefs_browser_proxy.js', | 1056 'test_site_settings_prefs_browser_proxy.js', |
1057 'protocol_handlers_tests.js', | 1057 'protocol_handlers_tests.js', |
1058 ]), | 1058 ]), |
1059 }; | 1059 }; |
1060 | 1060 |
1061 TEST_F('CrSettingsProtocolHandlersTest', 'All', function() { | 1061 TEST_F('CrSettingsProtocolHandlersTest', 'All', function() { |
1062 mocha.run(); | 1062 mocha.run(); |
1063 }); | 1063 }); |
1064 | 1064 |
1065 /** | 1065 /** |
1066 * @constructor | 1066 * @constructor |
1067 * @extends {CrSettingsBrowserTest} | 1067 * @extends {CrSettingsBrowserTest} |
1068 */ | 1068 */ |
1069 function CrSettingsSiteDataTest() {} | 1069 function CrSettingsSiteDataTest() {} |
1070 | 1070 |
1071 CrSettingsSiteDataTest.prototype = { | 1071 CrSettingsSiteDataTest.prototype = { |
1072 __proto__: CrSettingsBrowserTest.prototype, | 1072 __proto__: CrSettingsBrowserTest.prototype, |
1073 | 1073 |
1074 browsePreload: 'chrome://md-settings/site_settings/site_data.html', | 1074 browsePreload: 'chrome://md-settings/site_settings/site_data.html', |
1075 | 1075 |
1076 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1076 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1077 'test_browser_proxy.js', | 1077 '../test_browser_proxy.js', |
1078 'test_site_settings_prefs_browser_proxy.js', | 1078 'test_site_settings_prefs_browser_proxy.js', |
1079 'site_data_test.js', | 1079 'site_data_test.js', |
1080 ]), | 1080 ]), |
1081 }; | 1081 }; |
1082 | 1082 |
1083 TEST_F('CrSettingsSiteDataTest', 'All', function() { | 1083 TEST_F('CrSettingsSiteDataTest', 'All', function() { |
1084 mocha.run(); | 1084 mocha.run(); |
1085 }); | 1085 }); |
1086 | 1086 |
1087 GEN('#if defined(OS_CHROMEOS)'); | 1087 GEN('#if defined(OS_CHROMEOS)'); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 function CrSettingsSystemPageTest() {} | 1242 function CrSettingsSystemPageTest() {} |
1243 | 1243 |
1244 CrSettingsSystemPageTest.prototype = { | 1244 CrSettingsSystemPageTest.prototype = { |
1245 __proto__: CrSettingsBrowserTest.prototype, | 1245 __proto__: CrSettingsBrowserTest.prototype, |
1246 | 1246 |
1247 /** @override */ | 1247 /** @override */ |
1248 browsePreload: 'chrome://md-settings/system_page/system_page.html', | 1248 browsePreload: 'chrome://md-settings/system_page/system_page.html', |
1249 | 1249 |
1250 /** @override */ | 1250 /** @override */ |
1251 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1251 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1252 'test_browser_proxy.js', | 1252 '../test_browser_proxy.js', |
1253 'test_lifetime_browser_proxy.js', | 1253 'test_lifetime_browser_proxy.js', |
1254 'system_page_tests.js', | 1254 'system_page_tests.js', |
1255 ]), | 1255 ]), |
1256 }; | 1256 }; |
1257 | 1257 |
1258 TEST_F('CrSettingsSystemPageTest', 'All', function() { | 1258 TEST_F('CrSettingsSystemPageTest', 'All', function() { |
1259 mocha.run(); | 1259 mocha.run(); |
1260 }); | 1260 }); |
1261 GEN('#endif'); | 1261 GEN('#endif'); |
1262 | 1262 |
1263 /** | 1263 /** |
1264 * @constructor | 1264 * @constructor |
1265 * @extends {CrSettingsBrowserTest} | 1265 * @extends {CrSettingsBrowserTest} |
1266 */ | 1266 */ |
1267 function CrSettingsStartupUrlsPageTest() {} | 1267 function CrSettingsStartupUrlsPageTest() {} |
1268 | 1268 |
1269 CrSettingsStartupUrlsPageTest.prototype = { | 1269 CrSettingsStartupUrlsPageTest.prototype = { |
1270 __proto__: CrSettingsBrowserTest.prototype, | 1270 __proto__: CrSettingsBrowserTest.prototype, |
1271 | 1271 |
1272 browsePreload: 'chrome://md-settings/on_startup_page/startup_urls_page.html', | 1272 browsePreload: 'chrome://md-settings/on_startup_page/startup_urls_page.html', |
1273 | 1273 |
1274 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1274 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1275 'test_browser_proxy.js', | 1275 '../test_browser_proxy.js', |
1276 'startup_urls_page_test.js', | 1276 'startup_urls_page_test.js', |
1277 ]), | 1277 ]), |
1278 }; | 1278 }; |
1279 | 1279 |
1280 TEST_F('CrSettingsStartupUrlsPageTest', 'All', function() { | 1280 TEST_F('CrSettingsStartupUrlsPageTest', 'All', function() { |
1281 mocha.run(); | 1281 mocha.run(); |
1282 }); | 1282 }); |
1283 | 1283 |
1284 GEN('#if !defined(OS_MACOSX)'); | 1284 GEN('#if !defined(OS_MACOSX)'); |
1285 /** | 1285 /** |
1286 * @constructor | 1286 * @constructor |
1287 * @extends {CrSettingsBrowserTest} | 1287 * @extends {CrSettingsBrowserTest} |
1288 */ | 1288 */ |
1289 function CrSettingsEditDictionaryPageTest() {} | 1289 function CrSettingsEditDictionaryPageTest() {} |
1290 | 1290 |
1291 CrSettingsEditDictionaryPageTest.prototype = { | 1291 CrSettingsEditDictionaryPageTest.prototype = { |
1292 __proto__: CrSettingsBrowserTest.prototype, | 1292 __proto__: CrSettingsBrowserTest.prototype, |
1293 | 1293 |
1294 /** @override */ | 1294 /** @override */ |
1295 browsePreload: | 1295 browsePreload: |
1296 'chrome://md-settings/languages_page/edit_dictionary_page.html', | 1296 'chrome://md-settings/languages_page/edit_dictionary_page.html', |
1297 | 1297 |
1298 /** @override */ | 1298 /** @override */ |
1299 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1299 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1300 '../fake_chrome_event.js', | 1300 '../fake_chrome_event.js', |
1301 'fake_settings_private.js', | 1301 'fake_settings_private.js', |
1302 'test_browser_proxy.js', | 1302 '../test_browser_proxy.js', |
1303 'fake_language_settings_private.js', | 1303 'fake_language_settings_private.js', |
1304 'edit_dictionary_page_test.js', | 1304 'edit_dictionary_page_test.js', |
1305 ]), | 1305 ]), |
1306 }; | 1306 }; |
1307 | 1307 |
1308 TEST_F('CrSettingsEditDictionaryPageTest', 'All', function() { | 1308 TEST_F('CrSettingsEditDictionaryPageTest', 'All', function() { |
1309 mocha.run(); | 1309 mocha.run(); |
1310 }); | 1310 }); |
1311 GEN('#endif'); | 1311 GEN('#endif'); |
1312 | 1312 |
1313 /** | 1313 /** |
1314 * @constructor | 1314 * @constructor |
1315 * @extends {CrSettingsBrowserTest} | 1315 * @extends {CrSettingsBrowserTest} |
1316 */ | 1316 */ |
1317 function CrSettingsLanguagesTest() {} | 1317 function CrSettingsLanguagesTest() {} |
1318 | 1318 |
1319 CrSettingsLanguagesTest.prototype = { | 1319 CrSettingsLanguagesTest.prototype = { |
1320 __proto__: CrSettingsBrowserTest.prototype, | 1320 __proto__: CrSettingsBrowserTest.prototype, |
1321 | 1321 |
1322 /** @override */ | 1322 /** @override */ |
1323 browsePreload: 'chrome://md-settings/languages_page/languages.html', | 1323 browsePreload: 'chrome://md-settings/languages_page/languages.html', |
1324 | 1324 |
1325 /** @override */ | 1325 /** @override */ |
1326 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1326 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1327 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 1327 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
1328 '../fake_chrome_event.js', | 1328 '../fake_chrome_event.js', |
1329 'test_util.js', | 1329 'test_util.js', |
1330 'test_browser_proxy.js', | 1330 '../test_browser_proxy.js', |
1331 'fake_language_settings_private.js', | 1331 'fake_language_settings_private.js', |
1332 'fake_settings_private.js', | 1332 'fake_settings_private.js', |
1333 'fake_input_method_private.js', | 1333 'fake_input_method_private.js', |
1334 'test_languages_browser_proxy.js', | 1334 'test_languages_browser_proxy.js', |
1335 'languages_tests.js', | 1335 'languages_tests.js', |
1336 ]), | 1336 ]), |
1337 }; | 1337 }; |
1338 | 1338 |
1339 // Flaky on Win and Linux, see http://crbug/692356. | 1339 // Flaky on Win and Linux, see http://crbug/692356. |
1340 TEST_F('CrSettingsLanguagesTest', 'All', function() { | 1340 TEST_F('CrSettingsLanguagesTest', 'All', function() { |
1341 mocha.run(); | 1341 mocha.run(); |
1342 }); | 1342 }); |
1343 | 1343 |
1344 /** | 1344 /** |
1345 * @constructor | 1345 * @constructor |
1346 * @extends {CrSettingsBrowserTest} | 1346 * @extends {CrSettingsBrowserTest} |
1347 */ | 1347 */ |
1348 function CrSettingsLanguagesPageTest() {} | 1348 function CrSettingsLanguagesPageTest() {} |
1349 | 1349 |
1350 CrSettingsLanguagesPageTest.prototype = { | 1350 CrSettingsLanguagesPageTest.prototype = { |
1351 __proto__: CrSettingsBrowserTest.prototype, | 1351 __proto__: CrSettingsBrowserTest.prototype, |
1352 | 1352 |
1353 /** @override */ | 1353 /** @override */ |
1354 browsePreload: 'chrome://md-settings/languages_page/languages_page.html', | 1354 browsePreload: 'chrome://md-settings/languages_page/languages_page.html', |
1355 | 1355 |
1356 /** @override */ | 1356 /** @override */ |
1357 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1357 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1358 '../fake_chrome_event.js', | 1358 '../fake_chrome_event.js', |
1359 'test_util.js', | 1359 'test_util.js', |
1360 'test_browser_proxy.js', | 1360 '../test_browser_proxy.js', |
1361 'fake_settings_private.js', | 1361 'fake_settings_private.js', |
1362 'fake_language_settings_private.js', | 1362 'fake_language_settings_private.js', |
1363 'fake_input_method_private.js', | 1363 'fake_input_method_private.js', |
1364 'test_languages_browser_proxy.js', | 1364 'test_languages_browser_proxy.js', |
1365 'languages_page_tests.js', | 1365 'languages_page_tests.js', |
1366 ]), | 1366 ]), |
1367 }; | 1367 }; |
1368 | 1368 |
1369 TEST_F('CrSettingsLanguagesPageTest', 'AddLanguagesDialog', function() { | 1369 TEST_F('CrSettingsLanguagesPageTest', 'AddLanguagesDialog', function() { |
1370 mocha.grep(assert(languages_page_tests.TestNames.AddLanguagesDialog)).run(); | 1370 mocha.grep(assert(languages_page_tests.TestNames.AddLanguagesDialog)).run(); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 function CrSettingsMainPageTest() {} | 1496 function CrSettingsMainPageTest() {} |
1497 | 1497 |
1498 CrSettingsMainPageTest.prototype = { | 1498 CrSettingsMainPageTest.prototype = { |
1499 __proto__: CrSettingsBrowserTest.prototype, | 1499 __proto__: CrSettingsBrowserTest.prototype, |
1500 | 1500 |
1501 /** @override */ | 1501 /** @override */ |
1502 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', | 1502 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', |
1503 | 1503 |
1504 /** @override */ | 1504 /** @override */ |
1505 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1505 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1506 'test_browser_proxy.js', | 1506 '../test_browser_proxy.js', |
1507 'test_util.js', | 1507 'test_util.js', |
1508 'settings_main_test.js', | 1508 'settings_main_test.js', |
1509 ]), | 1509 ]), |
1510 }; | 1510 }; |
1511 | 1511 |
1512 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { | 1512 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { |
1513 settings_main_page.registerTests(); | 1513 settings_main_page.registerTests(); |
1514 mocha.run(); | 1514 mocha.run(); |
1515 }); | 1515 }); |
1516 | 1516 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 | 1583 |
1584 function CrSettingsMetricsReportingTest() {} | 1584 function CrSettingsMetricsReportingTest() {} |
1585 | 1585 |
1586 CrSettingsMetricsReportingTest.prototype = { | 1586 CrSettingsMetricsReportingTest.prototype = { |
1587 __proto__: CrSettingsBrowserTest.prototype, | 1587 __proto__: CrSettingsBrowserTest.prototype, |
1588 | 1588 |
1589 /** @override */ | 1589 /** @override */ |
1590 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', | 1590 browsePreload: 'chrome://md-settings/privacy_page/privacy_page.html', |
1591 | 1591 |
1592 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1592 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1593 'test_browser_proxy.js', | 1593 '../test_browser_proxy.js', |
1594 'test_privacy_page_browser_proxy.js', | 1594 'test_privacy_page_browser_proxy.js', |
1595 'metrics_reporting_tests.js', | 1595 'metrics_reporting_tests.js', |
1596 ]), | 1596 ]), |
1597 }; | 1597 }; |
1598 | 1598 |
1599 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { | 1599 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { |
1600 mocha.run(); | 1600 mocha.run(); |
1601 }); | 1601 }); |
1602 | 1602 |
1603 GEN('#endif'); | 1603 GEN('#endif'); |
(...skipping 15 matching lines...) Expand all Loading... |
1619 | 1619 |
1620 /** @override */ | 1620 /** @override */ |
1621 commandLineSwitches: [{ | 1621 commandLineSwitches: [{ |
1622 switchName: 'enable-native-cups', | 1622 switchName: 'enable-native-cups', |
1623 }], | 1623 }], |
1624 | 1624 |
1625 /** @override */ | 1625 /** @override */ |
1626 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1626 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1627 ROOT_PATH + 'ui/webui/resources/js/assert.js', | 1627 ROOT_PATH + 'ui/webui/resources/js/assert.js', |
1628 'test_util.js', | 1628 'test_util.js', |
1629 'test_browser_proxy.js', | 1629 '../test_browser_proxy.js', |
1630 'cups_printer_page_tests.js', | 1630 'cups_printer_page_tests.js', |
1631 ]), | 1631 ]), |
1632 }; | 1632 }; |
1633 | 1633 |
1634 TEST_F('CrSettingsPrintingPageTest', 'All', function() { | 1634 TEST_F('CrSettingsPrintingPageTest', 'All', function() { |
1635 mocha.run(); | 1635 mocha.run(); |
1636 }); | 1636 }); |
1637 | 1637 |
1638 GEN('#endif'); | 1638 GEN('#endif'); |
1639 | 1639 |
1640 GEN('#if defined(OS_CHROMEOS)'); | 1640 GEN('#if defined(OS_CHROMEOS)'); |
1641 | 1641 |
1642 /** | 1642 /** |
1643 * Test fixture for the Google Play Store (ARC) page. | 1643 * Test fixture for the Google Play Store (ARC) page. |
1644 * @constructor | 1644 * @constructor |
1645 * @extends {CrSettingsBrowserTest} | 1645 * @extends {CrSettingsBrowserTest} |
1646 */ | 1646 */ |
1647 function CrSettingsAndroidAppsPageTest() {} | 1647 function CrSettingsAndroidAppsPageTest() {} |
1648 | 1648 |
1649 CrSettingsAndroidAppsPageTest.prototype = { | 1649 CrSettingsAndroidAppsPageTest.prototype = { |
1650 __proto__: CrSettingsBrowserTest.prototype, | 1650 __proto__: CrSettingsBrowserTest.prototype, |
1651 | 1651 |
1652 /** @override */ | 1652 /** @override */ |
1653 browsePreload: | 1653 browsePreload: |
1654 'chrome://md-settings/android_apps_page/android_apps_page.html', | 1654 'chrome://md-settings/android_apps_page/android_apps_page.html', |
1655 | 1655 |
1656 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1656 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1657 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', | 1657 ROOT_PATH + 'ui/webui/resources/js/promise_resolver.js', |
1658 'test_browser_proxy.js', | 1658 '../test_browser_proxy.js', |
1659 'android_apps_page_test.js', | 1659 'android_apps_page_test.js', |
1660 ]), | 1660 ]), |
1661 }; | 1661 }; |
1662 | 1662 |
1663 TEST_F('CrSettingsAndroidAppsPageTest', 'All', function() { | 1663 TEST_F('CrSettingsAndroidAppsPageTest', 'All', function() { |
1664 mocha.run(); | 1664 mocha.run(); |
1665 }); | 1665 }); |
1666 | 1666 |
1667 /** | 1667 /** |
1668 * Test fixture for the Date and Time page. | 1668 * Test fixture for the Date and Time page. |
(...skipping 27 matching lines...) Expand all Loading... |
1696 function CrSettingsExtensionControlledIndicatorTest() {} | 1696 function CrSettingsExtensionControlledIndicatorTest() {} |
1697 | 1697 |
1698 CrSettingsExtensionControlledIndicatorTest.prototype = { | 1698 CrSettingsExtensionControlledIndicatorTest.prototype = { |
1699 __proto__: CrSettingsBrowserTest.prototype, | 1699 __proto__: CrSettingsBrowserTest.prototype, |
1700 | 1700 |
1701 /** @override */ | 1701 /** @override */ |
1702 browsePreload: | 1702 browsePreload: |
1703 'chrome://md-settings/controls/extension_controlled_indicator.html', | 1703 'chrome://md-settings/controls/extension_controlled_indicator.html', |
1704 | 1704 |
1705 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ | 1705 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ |
1706 'test_browser_proxy.js', | 1706 '../test_browser_proxy.js', |
1707 'test_extension_control_browser_proxy.js', | 1707 'test_extension_control_browser_proxy.js', |
1708 'extension_controlled_indicator_tests.js', | 1708 'extension_controlled_indicator_tests.js', |
1709 ]), | 1709 ]), |
1710 }; | 1710 }; |
1711 | 1711 |
1712 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { | 1712 TEST_F('CrSettingsExtensionControlledIndicatorTest', 'All', function() { |
1713 mocha.run(); | 1713 mocha.run(); |
1714 }); | 1714 }); |
OLD | NEW |