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

Side by Side Diff: tests/lib_strong/html/rtc_test.dart

Issue 2592813003: Fix bug in Blob creation from workers. (Closed)
Patch Set: Remove version checks for Rtc now that Chrome 55 is stable. Created 4 years 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 | « pkg/dev_compiler/test/browser/language_tests.js ('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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:html'; 5 import 'dart:html';
6 6
7 import 'package:expect/minitest.dart'; 7 import 'package:expect/minitest.dart';
8 8
9 main() { 9 main() {
10 group('supported', () { 10 group('supported', () {
11 test('supported', () { 11 test('supported', () {
12 expect(RtcPeerConnection.supported, isTrue); 12 expect(RtcPeerConnection.supported, isTrue);
13 }); 13 });
14 }); 14 });
15 15
16 group('functionality', () { 16 group('functionality', () {
17 // More thorough testing of this API requires the user to 17 // More thorough testing of this API requires the user to
18 // explicitly click "allow this site to access my camera and/or microphone." 18 // explicitly click "allow this site to access my camera and/or microphone."
19 // or particularly allow that site to always have those permission on each 19 // or particularly allow that site to always have those permission on each
20 // computer the test is run. For more through tests, see 20 // computer the test is run. For more through tests, see
21 // interactive_test.dart. 21 // interactive_test.dart.
22 if (RtcPeerConnection.supported) { 22 if (RtcPeerConnection.supported) {
23 test('peer connection', () { 23 test('peer connection', () {
24 var pc = new RtcPeerConnection( 24 var pc = new RtcPeerConnection(
25 {'iceServers': [ {'url':'stun:216.93.246.18:3478'}]}); 25 {'iceServers': [ {'url':'stun:216.93.246.18:3478'}]});
26 expect(pc is RtcPeerConnection, isTrue); 26 expect(pc is RtcPeerConnection, isTrue);
27 // TODO(efortuna): Uncomment this test when RTCPeerConnection correctly 27 pc.onIceCandidate.listen((candidate) {});
28 // implements EventListener in Firefox (works correctly in nightly, so
29 // it's coming!).
30 //pc.onIceCandidate.listen((candidate) {});
31 }); 28 });
32 29
33 test('ice candidate', () { 30 test('ice candidate', () {
34 var candidate = new RtcIceCandidate({'sdpMLineIndex' : 1, 31 var candidate = new RtcIceCandidate({'sdpMLineIndex' : 1,
35 'candidate' : 'hello'}); 32 'candidate' : 'hello'});
36 expect(candidate is RtcIceCandidate, isTrue); 33 expect(candidate is RtcIceCandidate, isTrue);
37 }); 34 });
38 35
39 test('session description', () { 36 test('session description', () {
40 var description = new RtcSessionDescription({'sdp': 'foo', 37 var description = new RtcSessionDescription({'sdp': 'foo',
41 'type': 'offer'}); 38 'type': 'offer'});
42 expect(description is RtcSessionDescription, isTrue); 39 expect(description is RtcSessionDescription, isTrue);
43 }); 40 });
44 } 41 }
45 }); 42 });
46 } 43 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698