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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/background_sync/resources/interfaces-worker.js

Issue 1936533003: Layout Tests: Remove assert_will_be_idl_attribute() helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused import Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/permissions/resources/test-api-surface.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 importScripts('/resources/testharness.js'); 1 importScripts('/resources/testharness.js');
2 importScripts('/resources/testharness-helpers.js');
3 2
4 test(function() { 3 test(function() {
5 assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as a global.'); 4 assert_own_property(self, 'SyncManager', 'SyncManager needs to be exposed as a global.');
6 assert_idl_attribute(registration, 'sync', 'One-shot SyncManager needs to be exposed on the registration.'); 5 assert_idl_attribute(registration, 'sync', 'One-shot SyncManager needs to be exposed on the registration.');
7 6
8 assert_inherits(registration.sync, 'register'); 7 assert_inherits(registration.sync, 'register');
9 assert_inherits(registration.sync, 'getTags'); 8 assert_inherits(registration.sync, 'getTags');
10 9
11 }, 'SyncManager should be exposed and have the expected interface.'); 10 }, 'SyncManager should be exposed and have the expected interface.');
12 11
13 test(function() { 12 test(function() {
14 assert_own_property(self, 'SyncEvent'); 13 assert_own_property(self, 'SyncEvent');
15 14
16 assert_will_be_idl_attribute(SyncEvent.prototype, 'tag'); 15 var instance = new SyncEvent('dummy', {tag: ''});
16 assert_idl_attribute(instance, 'tag');
17 assert_idl_attribute(instance, 'lastChance');
17 18
18 // SyncEvent should be extending ExtendableEvent. 19 // SyncEvent should be extending ExtendableEvent.
19 assert_inherits(SyncEvent.prototype, 'waitUntil'); 20 assert_inherits(SyncEvent.prototype, 'waitUntil');
20 21
21 }, 'SyncEvent should be exposed and have the expected interface.'); 22 }, 'SyncEvent should be exposed and have the expected interface.');
22
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/permissions/resources/test-api-surface.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698