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

Side by Side Diff: sky/tests/services/network.sky

Issue 687703002: Fix services/network.sky test (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/tests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <link rel="import" href="../resources/chai.sky" /> 2 <link rel="import" href="../resources/chai.sky" />
3 <link rel="import" href="../resources/mocha.sky" /> 3 <link rel="import" href="../resources/mocha.sky" />
4 <link rel="import" href="/mojo/public/html/core.html" as="core" /> 4 <link rel="import" href="/mojo/public/html/core.html" as="core" />
5 <link rel="import" href="/mojo/public/html/connection.html" as="connection" /> 5 <link rel="import" href="/mojo/public/html/connection.html" as="connection" />
6 <link rel="import" href="/mojo/services/public/interfaces/network/network_servic e.mojom.html" as="net" /> 6 <link rel="import" href="/mojo/services/public/interfaces/network/network_servic e.mojom.html" as="net" />
7 <link rel="import" href="/mojo/services/public/interfaces/network/url_loader.moj om.html" as="loader" /> 7 <link rel="import" href="/mojo/services/public/interfaces/network/url_loader.moj om.html" as="loader" />
8 <script> 8 <script>
9 describe('Mojo network_service', function() { 9 describe('Mojo network_service', function() {
10 this.enableTimeouts(false); 10 this.enableTimeouts(false);
11 11
12 it('should be able to fetch text files', function(done) { 12 it('should be able to fetch text files', function(done) {
13 var netServiceHandle = internals.connectToService( 13 var netServiceHandle = internals.connectToService(
14 "mojo://network_service//", "mojo::NetworkService"); 14 "mojo://network_service/", "mojo::NetworkService");
15 var netConnection = new connection.Connection( 15 var netConnection = new connection.Connection(
16 netServiceHandle, 16 netServiceHandle,
17 net.NetworkService.stubClass, 17 net.NetworkService.stubClass,
18 net.NetworkService.proxyClass); 18 net.NetworkService.proxyClass);
19 var urlLoaderPipe = new core.createMessagePipe(); 19 var urlLoaderPipe = new core.createMessagePipe();
20 netConnection.remote.createURLLoader(urlLoaderPipe.handle1); 20 netConnection.remote.createURLLoader(urlLoaderPipe.handle1);
21 var urlLoaderConnection = new connection.Connection( 21 var urlLoaderConnection = new connection.Connection(
22 urlLoaderPipe.handle0, 22 urlLoaderPipe.handle0,
23 loader.URLLoader.stubClass, 23 loader.URLLoader.stubClass,
24 loader.URLLoader.proxyClass); 24 loader.URLLoader.proxyClass);
(...skipping 15 matching lines...) Expand all
40 done(); 40 done();
41 }); 41 });
42 }).catch(function() { 42 }).catch(function() {
43 assert.ok(false, "start failed"); 43 assert.ok(false, "start failed");
44 done(); 44 done();
45 }); 45 });
46 }); 46 });
47 }); 47 });
48 </script> 48 </script>
49 </html> 49 </html>
OLDNEW
« no previous file with comments | « sky/tests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698