library WebSocketTest; | |
import '../../pkg/unittest/lib/unittest.dart'; | |
import '../../pkg/unittest/lib/html_config.dart'; | |
import 'dart:html'; | |
main() { | |
useHtmlConfiguration(); | |
var isWebSocket = predicate((x) => x is WebSocket, 'is a WebSocket'); | |
test('constructorTest', () { | |
var socket = new WebSocket('ws://localhost'); | |
expect(socket, isNotNull); | |
expect(socket, isWebSocket); | |
}); | |
} |