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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-basics.html

Issue 2865313003: Upstream service worker tests to WPT (Closed)
Patch Set: Re-introduce resource script Created 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Credential Manager: get() basics.</title> 2 <title>Credential Manager: get() basics.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="/serviceworker/resources/interfaces.js"></script> 5 <script src="resources/interfaces.js"></script>
6 <script> 6 <script>
7 function stubResolverUndefinedChecker(c) { 7 function stubResolverUndefinedChecker(c) {
8 assert_equals(c, undefined); 8 assert_equals(c, undefined);
9 this.done(); 9 this.done();
10 } 10 }
11 11
12 function stubRejectionChecker(reason) { 12 function stubRejectionChecker(reason) {
13 assert_unreached("get(...) should not reject, but did: " + reason.name); 13 assert_unreached("get(...) should not reject, but did: " + reason.name);
14 } 14 }
15 15
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (window.testRunner) 140 if (window.testRunner)
141 testRunner.setMockCredentialManagerResponse(id, name, icon, password ); 141 testRunner.setMockCredentialManagerResponse(id, name, icon, password );
142 navigator.credentials.get({ 142 navigator.credentials.get({
143 password: true 143 password: true
144 }).then( 144 }).then(
145 t.step_func(stubResolverChecker.bind(t)), 145 t.step_func(stubResolverChecker.bind(t)),
146 t.step_func(stubRejectionChecker.bind(t))); 146 t.step_func(stubRejectionChecker.bind(t)));
147 }); 147 });
148 }()); 148 }());
149 </script> 149 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698