author | Artem Herasymenko <arherasy@microsoft.com> |
Wed, 14 Aug 2019 10:47:09 +0000 | |
changeset 487990 | 1cebcb175639c8df574e01ba55064693b34d8a0e |
parent 487989 | 2391aec40f5d86f9a7f563f0128a9135a0485f6d |
child 487991 | 0eae879f24bf6ba893f76cca022298b15d969bc7 |
push id | 113896 |
push user | wptsync@mozilla.com |
push date | Thu, 15 Aug 2019 02:18:58 +0000 |
treeherder | mozilla-inbound@943fd9dde020 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1570836, 18246, 697147, 1730499, 685698 |
milestone | 70.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/service-workers/service-worker/ServiceWorkerGlobalScope/fetch-on-the-right-interface.https.any.js | file | annotate | diff | comparison | revisions |
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/service-workers/service-worker/ServiceWorkerGlobalScope/fetch-on-the-right-interface.https.any.js @@ -0,0 +1,14 @@ +// META: title=fetch method on the right interface +// META: global=!default,serviceworker + +test(function() { + assert_false(self.hasOwnProperty('fetch'), 'ServiceWorkerGlobalScope ' + + 'instance should not have "fetch" method as its property.'); + assert_inherits(self, 'fetch', 'ServiceWorkerGlobalScope should ' + + 'inherit "fetch" method.'); + assert_own_property(self.__proto__.__proto__, 'fetch', + 'WorkerGlobalScope should have "fetch" propery in its prototype.'); + assert_equals(self.fetch, self.__proto__.__proto__.fetch, + 'ServiceWorkerGlobalScope.fetch should be the same as ' + + 'WorkerGlobalScope.fetch.'); +}, 'Fetch method on the right interface'); \ No newline at end of file