Bug 1424571 - Move all notification tests to dom/notification; r=baku

Tests were split between dom/notification and
dom/test/mochitest/notification. Moving them all to the same place.

MozReview-Commit-ID: IP1YtIBmHcD


--HG--
rename : dom/tests/mochitest/notification/MockServices.js => dom/notification/test/mochitest/MockServices.js
rename : dom/tests/mochitest/notification/NotificationTest.js => dom/notification/test/mochitest/NotificationTest.js
rename : dom/tests/mochitest/notification/mochitest.ini => dom/notification/test/mochitest/mochitest.ini
rename : dom/tests/mochitest/notification/test_bug931307.html => dom/notification/test/mochitest/test_bug931307.html
rename : dom/tests/mochitest/notification/test_notification_basics.html => dom/notification/test/mochitest/test_notification_basics.html
rename : dom/tests/mochitest/notification/test_notification_storage.html => dom/notification/test/mochitest/test_notification_storage.html
This commit is contained in:
Kyle Machulis 2017-12-08 18:38:13 -08:00
parent f438b13735
commit 180e7d761c
21 changed files with 26 additions and 28 deletions

View file

@ -241,6 +241,7 @@ dom/network/**
dom/notification/Notification*.*
dom/notification/test/browser/**
dom/notification/test/unit/**
dom/notification/test/mochitest/**
dom/offline/**
dom/payments/**
dom/performance/**

View file

@ -37,6 +37,7 @@ LOCAL_INCLUDES += [
BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
MOCHITEST_MANIFESTS += ['test/mochitest/mochitest.ini']
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += ['-Wno-error=shadow']

View file

@ -85,9 +85,6 @@ with Files("mochitest/geolocation/**"):
with Files("mochitest/localstorage/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("mochitest/notification/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("mochitest/orientation/**"):
BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
@ -169,7 +166,6 @@ MOCHITEST_MANIFESTS += [
'mochitest/general/mochitest.ini',
'mochitest/geolocation/mochitest.ini',
'mochitest/localstorage/mochitest.ini',
'mochitest/notification/mochitest.ini',
'mochitest/orientation/mochitest.ini',
'mochitest/pointerlock/mochitest.ini',
'mochitest/script/mochitest.ini',

View file

@ -95,8 +95,8 @@ support-files =
worker_suspended.js
window_suspended.html
!/dom/base/test/file_bug945152.jar
!/dom/tests/mochitest/notification/MockServices.js
!/dom/tests/mochitest/notification/NotificationTest.js
!/dom/notification/test/mochitest/MockServices.js
!/dom/notification/test/mochitest/NotificationTest.js
!/dom/xhr/tests/relativeLoad_import.js
!/dom/xhr/tests/relativeLoad_worker.js
!/dom/xhr/tests/relativeLoad_worker2.js

View file

@ -212,8 +212,8 @@ support-files =
file_js_cache_syntax_error.html
file_js_cache_syntax_error.js
!/dom/security/test/cors/file_CrossSiteXHR_server.sjs
!/dom/tests/mochitest/notification/MockServices.js
!/dom/tests/mochitest/notification/NotificationTest.js
!/dom/notification/test/mochitest/MockServices.js
!/dom/notification/test/mochitest/NotificationTest.js
blocking_install_event_worker.js
sw_bad_mime_type.js
sw_bad_mime_type.js^headers^

View file

@ -7,8 +7,8 @@
<head>
<title>Bug XXXXXXX - Check that Notification constructor throws in ServiceWorkerGlobalScope</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -3,8 +3,8 @@
<head>
<title>ServiceWorkerRegistration.getNotifications() on main thread and worker thread.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 1114554 - Test ServiceWorkerGlobalScope.notificationclick event.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 1114554 - Test ServiceWorkerGlobalScope.notificationclick event.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 1144660 - Test client.focus() permissions on notification click</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1265841
<head>
<title>Bug 1265841 - Test ServiceWorkerGlobalScope.notificationclose event.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1172870
<head>
<title>Bug 1172870 - Test clients.openWindow</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 916893</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 916893 - Test Notifications in child workers.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>

View file

@ -6,8 +6,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=916893
<head>
<title>Bug 916893 - Make sure error is fired on Notification if permission is denied.</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/tests/mochitest/notification/NotificationTest.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/MockServices.js"></script>
<script type="text/javascript" src="/tests/dom/notification/test/mochitest/NotificationTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>