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

Side by Side Diff: lib/src/runner/browser/static/host.dart.js

Issue 979513002: pkg/unittest: Add a server for serving test assets to browsers. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Fix libDir. Created 5 years, 9 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 // Generated by dart2js, the Dart to JavaScript compiler version: 1.9.0-edge.440 28. 1 // Generated by dart2js, the Dart to JavaScript compiler version: 1.9.0-edge.440 28.
2 // The code supports the following hooks: 2 // The code supports the following hooks:
3 // dartPrint(message): 3 // dartPrint(message):
4 // if this function is defined it is called instead of the Dart [print] 4 // if this function is defined it is called instead of the Dart [print]
5 // method. 5 // method.
6 // 6 //
7 // dartMainRunner(main, args): 7 // dartMainRunner(main, args):
8 // if this function is defined, the Dart [main] method will not be invoked 8 // if this function is defined, the Dart [main] method will not be invoked
9 // directly. Instead, a closure that will invoke [main], and its arguments 9 // directly. Instead, a closure that will invoke [main], and its arguments
10 // [args] is passed to [dartMainRunner]. 10 // [args] is passed to [dartMainRunner].
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 substitute: function(substitution, $arguments) { 2889 substitute: function(substitution, $arguments) {
2890 if (typeof substitution == "function") { 2890 if (typeof substitution == "function") {
2891 substitution = H.invokeOn(substitution, null, $arguments); 2891 substitution = H.invokeOn(substitution, null, $arguments);
2892 if (substitution == null || typeof substitution === "object" && substituti on !== null && substitution.constructor === Array) 2892 if (substitution == null || typeof substitution === "object" && substituti on !== null && substitution.constructor === Array)
2893 $arguments = substitution; 2893 $arguments = substitution;
2894 else if (typeof substitution == "function") 2894 else if (typeof substitution == "function")
2895 $arguments = H.invokeOn(substitution, null, $arguments); 2895 $arguments = H.invokeOn(substitution, null, $arguments);
2896 } 2896 }
2897 return $arguments; 2897 return $arguments;
2898 }, 2898 },
2899 checkSubtype: function(object, isField, checks, asField) {
2900 var $arguments, interceptor;
2901 if (object == null)
2902 return false;
2903 $arguments = H.getRuntimeTypeInfo(object);
2904 interceptor = J.getInterceptor(object);
2905 if (interceptor[isField] == null)
2906 return false;
2907 return H.areSubtypes(H.substitute(interceptor[asField], $arguments), checks) ;
2908 },
2899 areSubtypes: function(s, t) { 2909 areSubtypes: function(s, t) {
2900 var len, i; 2910 var len, i;
2901 if (s == null || t == null) 2911 if (s == null || t == null)
2902 return true; 2912 return true;
2903 len = s.length; 2913 len = s.length;
2904 for (i = 0; i < len; ++i) 2914 for (i = 0; i < len; ++i)
2905 if (!H.isSubtype(s[i], t[i])) 2915 if (!H.isSubtype(s[i], t[i]))
2906 return false; 2916 return false;
2907 return true; 2917 return true;
2908 }, 2918 },
(...skipping 6418 matching lines...) Expand 10 before | Expand all | Expand 10 after
9327 appendSlash = true; 9337 appendSlash = true;
9328 else { 9338 else {
9329 output.push(segment); 9339 output.push(segment);
9330 appendSlash = false; 9340 appendSlash = false;
9331 } 9341 }
9332 } 9342 }
9333 if (appendSlash) 9343 if (appendSlash)
9334 output.push(""); 9344 output.push("");
9335 return C.JSArray_methods.join$1(output, "/"); 9345 return C.JSArray_methods.join$1(output, "/");
9336 }, 9346 },
9337 resolveUri$1: function(reference) {
9338 var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targ etQuery, t1, fragment;
9339 targetScheme = reference.scheme;
9340 if (targetScheme.length !== 0) {
9341 if (reference._host != null) {
9342 targetUserInfo = reference._userInfo;
9343 targetHost = reference.get$host(reference);
9344 targetPort = reference._port != null ? reference.get$port(reference) : null;
9345 } else {
9346 targetUserInfo = "";
9347 targetHost = null;
9348 targetPort = null;
9349 }
9350 targetPath = this._removeDotSegments$1(reference._path);
9351 targetQuery = reference._query;
9352 if (targetQuery != null)
9353 ;
9354 else
9355 targetQuery = null;
9356 } else {
9357 targetScheme = this.scheme;
9358 if (reference._host != null) {
9359 targetUserInfo = reference._userInfo;
9360 targetHost = reference.get$host(reference);
9361 targetPort = P.Uri__makePort(reference._port != null ? reference.get$p ort(reference) : null, targetScheme);
9362 targetPath = this._removeDotSegments$1(reference._path);
9363 targetQuery = reference._query;
9364 if (targetQuery != null)
9365 ;
9366 else
9367 targetQuery = null;
9368 } else {
9369 t1 = reference._path;
9370 if (t1 === "") {
9371 targetPath = this._path;
9372 targetQuery = reference._query;
9373 if (targetQuery != null)
9374 ;
9375 else
9376 targetQuery = this._query;
9377 } else {
9378 targetPath = C.JSString_methods.startsWith$1(t1, "/") ? this._remove DotSegments$1(t1) : this._removeDotSegments$1(this._merge$2(this._path, t1));
9379 targetQuery = reference._query;
9380 if (targetQuery != null)
9381 ;
9382 else
9383 targetQuery = null;
9384 }
9385 targetUserInfo = this._userInfo;
9386 targetHost = this._host;
9387 targetPort = this._port;
9388 }
9389 }
9390 fragment = reference._fragment;
9391 if (fragment != null)
9392 ;
9393 else
9394 fragment = null;
9395 return new P.Uri(targetHost, targetPort, targetPath, targetScheme, targetU serInfo, targetQuery, fragment, null, null);
9396 },
9397 get$origin: function(_) { 9347 get$origin: function(_) {
9398 var t1, t2; 9348 var t1, t2;
9399 t1 = this.scheme; 9349 t1 = this.scheme;
9400 if (t1 !== "") { 9350 if (t1 !== "") {
9401 t2 = this._host; 9351 t2 = this._host;
9402 t2 = t2 == null || t2 === ""; 9352 t2 = t2 == null || t2 === "";
9403 } else 9353 } else
9404 t2 = true; 9354 t2 = true;
9405 if (t2) 9355 if (t2)
9406 throw H.wrapException(P.StateError$("Cannot use origin without a scheme: " + this.toString$0(0))); 9356 throw H.wrapException(P.StateError$("Cannot use origin without a scheme: " + this.toString$0(0)));
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
10469 "^": "Closure:15;", 10419 "^": "Closure:15;",
10470 call$2: function($byte, buffer) { 10420 call$2: function($byte, buffer) {
10471 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.cod eUnitAt$1("0123456789ABCDEF", $byte >>> 4)); 10421 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.cod eUnitAt$1("0123456789ABCDEF", $byte >>> 4));
10472 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.cod eUnitAt$1("0123456789ABCDEF", $byte & 15)); 10422 buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.cod eUnitAt$1("0123456789ABCDEF", $byte & 15));
10473 } 10423 }
10474 } 10424 }
10475 }], 10425 }],
10476 ["dart.dom.html", "dart:html", , W, { 10426 ["dart.dom.html", "dart:html", , W, {
10477 "^": "", 10427 "^": "",
10478 WebSocket_WebSocket: function(url, protocol_OR_protocols) { 10428 WebSocket_WebSocket: function(url, protocol_OR_protocols) {
10479 return new WebSocket(url); 10429 var t1, t2;
10430 t1 = typeof url !== "string";
10431 if ((!t1 || url == null) && true)
10432 return new WebSocket(url);
10433 t2 = !t1 || url == null;
10434 if (t2)
10435 return new WebSocket(url, protocol_OR_protocols);
10436 t2 = H.checkSubtype(protocol_OR_protocols, "$isList", [P.String], "$asList") ;
10437 if (!t2)
10438 ;
10439 t1 = !t1 || url == null;
10440 if (t1)
10441 return new WebSocket(url, protocol_OR_protocols);
10442 throw H.wrapException(P.ArgumentError$("Incorrect number or type of argument s"));
10480 }, 10443 },
10481 _JenkinsSmiHash_combine: function(hash, value) { 10444 _JenkinsSmiHash_combine: function(hash, value) {
10482 hash = 536870911 & hash + value; 10445 hash = 536870911 & hash + value;
10483 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); 10446 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0);
10484 return hash ^ hash >>> 6; 10447 return hash ^ hash >>> 6;
10485 }, 10448 },
10486 _JenkinsSmiHash_finish: function(hash) { 10449 _JenkinsSmiHash_finish: function(hash) {
10487 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); 10450 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0);
10488 hash ^= hash >>> 11; 10451 hash ^= hash >>> 11;
10489 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); 10452 return 536870911 & hash + ((16383 & hash) << 15 >>> 0);
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
11971 LazyTrace_terse_closure: { 11934 LazyTrace_terse_closure: {
11972 "^": "Closure:0;this_0", 11935 "^": "Closure:0;this_0",
11973 call$0: function() { 11936 call$0: function() {
11974 return this.this_0.get$_trace().get$terse(); 11937 return this.this_0.get$_trace().get$terse();
11975 } 11938 }
11976 } 11939 }
11977 }], 11940 }],
11978 ["path", "package:path/path.dart", , B, { 11941 ["path", "package:path/path.dart", , B, {
11979 "^": "", 11942 "^": "",
11980 current: function() { 11943 current: function() {
11981 var uri, t1, t2, path; 11944 var uri, t1, t2, targetScheme, targetUserInfo, targetHost, targetPort, targe tPath, targetQuery, fragment, path;
11982 uri = P.Uri_base(); 11945 uri = P.Uri_base();
11983 t1 = $.get$Style_platform(); 11946 t1 = $.get$Style_platform();
11984 t2 = $.get$Style_url(); 11947 t2 = $.get$Style_url();
11985 if (t1 == null ? t2 == null : t1 === t2) 11948 if (t1 == null ? t2 == null : t1 === t2) {
11986 return uri.resolveUri$1(P.Uri_parse(".")).toString$0(0); 11949 t1 = P.Uri_parse(".");
11987 else { 11950 targetScheme = t1.scheme;
11951 if (targetScheme.length !== 0) {
11952 if (t1._host != null) {
11953 targetUserInfo = t1._userInfo;
11954 targetHost = t1.get$host(t1);
11955 targetPort = t1._port != null ? t1.get$port(t1) : null;
11956 } else {
11957 targetUserInfo = "";
11958 targetHost = null;
11959 targetPort = null;
11960 }
11961 targetPath = uri._removeDotSegments$1(t1._path);
11962 targetQuery = t1._query;
11963 if (targetQuery != null)
11964 ;
11965 else
11966 targetQuery = null;
11967 } else {
11968 targetScheme = uri.scheme;
11969 if (t1._host != null) {
11970 targetUserInfo = t1._userInfo;
11971 targetHost = t1.get$host(t1);
11972 targetPort = P.Uri__makePort(t1._port != null ? t1.get$port(t1) : null , targetScheme);
11973 targetPath = uri._removeDotSegments$1(t1._path);
11974 targetQuery = t1._query;
11975 if (targetQuery != null)
11976 ;
11977 else
11978 targetQuery = null;
11979 } else {
11980 t2 = t1._path;
11981 if (t2 === "") {
11982 targetPath = uri._path;
11983 targetQuery = t1._query;
11984 if (targetQuery != null)
11985 ;
11986 else
11987 targetQuery = uri._query;
11988 } else {
11989 targetPath = C.JSString_methods.startsWith$1(t2, "/") ? uri._removeD otSegments$1(t2) : uri._removeDotSegments$1(uri._merge$2(uri._path, t2));
11990 targetQuery = t1._query;
11991 if (targetQuery != null)
11992 ;
11993 else
11994 targetQuery = null;
11995 }
11996 targetUserInfo = uri._userInfo;
11997 targetHost = uri._host;
11998 targetPort = uri._port;
11999 }
12000 }
12001 fragment = t1._fragment;
12002 if (fragment != null)
12003 ;
12004 else
12005 fragment = null;
12006 return new P.Uri(targetHost, targetPort, targetPath, targetScheme, targetU serInfo, targetQuery, fragment, null, null).toString$0(0);
12007 } else {
11988 path = uri.toFilePath$0(); 12008 path = uri.toFilePath$0();
11989 return C.JSString_methods.substring$2(path, 0, path.length - 1); 12009 return C.JSString_methods.substring$2(path, 0, path.length - 1);
11990 } 12010 }
11991 } 12011 }
11992 }], 12012 }],
11993 ["path.context", "package:path/src/context.dart", , F, { 12013 ["path.context", "package:path/src/context.dart", , F, {
11994 "^": "", 12014 "^": "",
11995 _validateArgList: function(method, args) { 12015 _validateArgList: function(method, args) {
11996 var i, numArgs, numArgs0, message, t1, t2; 12016 var i, numArgs, numArgs0, message, t1, t2;
11997 for (i = 1; i < 8; ++i) { 12017 for (i = 1; i < 8; ++i) {
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
12913 Trace_toString_closure: { 12933 Trace_toString_closure: {
12914 "^": "Closure:2;longest_0", 12934 "^": "Closure:2;longest_0",
12915 call$1: function(frame) { 12935 call$1: function(frame) {
12916 return H.S(N.padRight(J.get$location$x(frame), this.longest_0)) + " " + H .S(frame.get$member()) + "\n"; 12936 return H.S(N.padRight(J.get$location$x(frame), this.longest_0)) + " " + H .S(frame.get$member()) + "\n";
12917 } 12937 }
12918 } 12938 }
12919 }], 12939 }],
12920 ["unittest.multi_channel", "package:unittest/src/util/multi_channel.dart", , K, { 12940 ["unittest.multi_channel", "package:unittest/src/util/multi_channel.dart", , K, {
12921 "^": "", 12941 "^": "",
12922 _MultiChannel: { 12942 _MultiChannel: {
12923 "^": "Object;_innerStream,_innerSink,_innerStreamSubscription,_streamControl ler,_sinkController,_streamControllers,_sinkControllers,_nextId", 12943 "^": "StreamChannelMixin;_innerStream,_innerSink,_innerStreamSubscription,_s treamController,_sinkController,_streamControllers,_sinkControllers,_nextId",
12924 virtualChannel$1: function(id) { 12944 virtualChannel$1: function(id) {
12925 var t1, t2, inputId, t3, streamController, sinkController; 12945 var t1, t2, inputId, t3, streamController, sinkController;
12926 t1 = {}; 12946 t1 = {};
12927 if (this._innerStream == null) 12947 if (this._innerStream == null)
12928 throw H.wrapException(P.StateError$("The underlying channel is closed.") ); 12948 throw H.wrapException(P.StateError$("The underlying channel is closed.") );
12929 t1.inputId_0 = null; 12949 t1.inputId_0 = null;
12930 t1.outputId_1 = null; 12950 t1.outputId_1 = null;
12931 if (id != null) { 12951 if (id != null) {
12932 t1.inputId_0 = id; 12952 t1.inputId_0 = id;
12933 t1.outputId_1 = H.intTypeCast(id) + 1; 12953 t1.outputId_1 = H.intTypeCast(id) + 1;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
13035 } 13055 }
13036 }, 13056 },
13037 _MultiChannel_virtualChannel_closure0: { 13057 _MultiChannel_virtualChannel_closure0: {
13038 "^": "Closure:0;box_0,this_2", 13058 "^": "Closure:0;box_0,this_2",
13039 call$0: function() { 13059 call$0: function() {
13040 var t1 = this.box_0; 13060 var t1 = this.box_0;
13041 return this.this_2._closeChannel$2(t1.inputId_0, t1.outputId_1); 13061 return this.this_2._closeChannel$2(t1.inputId_0, t1.outputId_1);
13042 } 13062 }
13043 }, 13063 },
13044 VirtualChannel: { 13064 VirtualChannel: {
13045 "^": "Object;_parent,id,stream,sink" 13065 "^": "StreamChannelMixin;_parent,id,stream,sink"
13046 } 13066 }
13047 }], 13067 }],
13048 ["unittest.runner.browser.host", "host.dart", , O, { 13068 ["unittest.runner.browser.host", "host.dart", , O, {
13049 "^": "", 13069 "^": "",
13050 main: [function() { 13070 main: [function() {
13051 P.runZoned(new O.main_closure(), new O.main_closure0(), null, null); 13071 P.runZoned(new O.main_closure(), new O.main_closure0(), null, null);
13052 }, "call$0", "main$closure", 0, 0, 1], 13072 }, "call$0", "main$closure", 0, 0, 1],
13053 _connectToServer: function() { 13073 _connectToServer: function() {
13054 var currentUrl, t1, scheme, isFile, userInfo, port, host, path, t2, query, f ragment, webSocket, inputController, outputController; 13074 var currentUrl, t1, webSocket, inputController, outputController;
13055 currentUrl = P.Uri_parse(window.location.href); 13075 currentUrl = P.Uri_parse(window.location.href);
13056 t1 = currentUrl._queryParameters; 13076 t1 = currentUrl._queryParameters;
13057 if (t1 == null) { 13077 if (t1 == null) {
13058 t1 = currentUrl._query; 13078 t1 = currentUrl._query;
13059 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryString (t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]); 13079 t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryString (t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]);
13060 currentUrl._queryParameters = t1; 13080 currentUrl._queryParameters = t1;
13061 } 13081 }
13062 t1 = currentUrl.resolveUri$1(P.Uri_parse(J.$index$asx(t1._collection$_map, " managerUrl"))); 13082 webSocket = W.WebSocket_WebSocket(J.$index$asx(t1._collection$_map, "manager Url"), null);
13063 scheme = P.Uri__makeScheme("ws", 2);
13064 isFile = scheme === "file";
13065 userInfo = t1._userInfo;
13066 port = P.Uri__makePort(t1._port, scheme);
13067 if (t1._host != null)
13068 host = t1.get$host(t1);
13069 else
13070 host = userInfo.length !== 0 || port != null || isFile ? "" : null;
13071 path = t1._path;
13072 if (!isFile)
13073 t2 = host != null && path.length !== 0;
13074 else
13075 t2 = true;
13076 if (t2 && !C.JSString_methods.startsWith$1(path, "/"))
13077 path = "/" + path;
13078 query = t1._query;
13079 if (query != null)
13080 ;
13081 else
13082 query = null;
13083 fragment = t1._fragment;
13084 if (fragment != null)
13085 ;
13086 else
13087 fragment = null;
13088 webSocket = W.WebSocket_WebSocket(new P.Uri(host, port, path, scheme, userIn fo, query, fragment, null, null).toString$0(0), null);
13089 inputController = P.StreamController_StreamController(null, null, null, null , true, null); 13083 inputController = P.StreamController_StreamController(null, null, null, null , true, null);
13090 t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false), [ null]); 13084 t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false), [ null]);
13091 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._html$_target, t1. _eventType, W._wrapZone(new O._connectToServer_closure(inputController)), t1._us eCapture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0(); 13085 H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._html$_target, t1. _eventType, W._wrapZone(new O._connectToServer_closure(inputController)), t1._us eCapture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0();
13092 outputController = P.StreamController_StreamController(null, null, null, nul l, true, null); 13086 outputController = P.StreamController_StreamController(null, null, null, nul l, true, null);
13093 H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [null]).list en$1(new O._connectToServer_closure0(webSocket)); 13087 H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [null]).list en$1(new O._connectToServer_closure0(webSocket));
13094 return K._MultiChannel$(H.setRuntimeTypeInfo(new P._ControllerStream(inputCo ntroller), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputControll er), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)])); 13088 return K._MultiChannel$(H.setRuntimeTypeInfo(new P._ControllerStream(inputCo ntroller), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputControll er), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)]));
13095 }, 13089 },
13096 _connectToIframe: function(url) { 13090 _connectToIframe: function(url) {
13097 var iframe, t1, inputController, outputController; 13091 var iframe, t1, inputController, outputController;
13098 iframe = document.createElement("iframe", null); 13092 iframe = document.createElement("iframe", null);
13099 t1 = J.getInterceptor$x(iframe); 13093 t1 = J.getInterceptor$x(iframe);
13100 t1.set$src(iframe, url); 13094 t1.set$src(iframe, url);
13101 document.body.appendChild(iframe); 13095 document.body.appendChild(iframe);
13102 inputController = P.StreamController_StreamController(null, null, null, null , true, null); 13096 inputController = P.StreamController_StreamController(null, null, null, null , true, null);
13103 outputController = P.StreamController_StreamController(null, null, null, nul l, true, null); 13097 outputController = P.StreamController_StreamController(null, null, null, nul l, true, null);
13104 t1 = t1.get$onLoad(iframe); 13098 t1 = t1.get$onLoad(iframe);
13105 t1.get$first(t1).then$1(new O._connectToIframe_closure(iframe, inputControll er, outputController)); 13099 t1.get$first(t1).then$1(new O._connectToIframe_closure(iframe, inputControll er, outputController));
13106 return new X.StreamChannel(H.setRuntimeTypeInfo(new P._ControllerStream(inpu tController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputContr oller), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)])); 13100 return H.setRuntimeTypeInfo(new X._StreamChannel(H.setRuntimeTypeInfo(new P. _ControllerStream(inputController), [null]), H.setRuntimeTypeInfo(new P._StreamS inkWrapper(outputController), [H.getRuntimeTypeArgument(outputController, "_Stre amController", 0)])), [null]);
13107 }, 13101 },
13108 main_closure: { 13102 main_closure: {
13109 "^": "Closure:0;", 13103 "^": "Closure:0;",
13110 call$0: function() { 13104 call$0: function() {
13111 var serverChannel = O._connectToServer(); 13105 var serverChannel = O._connectToServer();
13112 H.setRuntimeTypeInfo(new P._ControllerStream(serverChannel._streamControll er), [null]).listen$1(new O.main__closure(serverChannel)); 13106 H.setRuntimeTypeInfo(new P._ControllerStream(serverChannel._streamControll er), [null]).listen$1(new O.main__closure(serverChannel));
13113 } 13107 }
13114 }, 13108 },
13115 main__closure: { 13109 main__closure: {
13116 "^": "Closure:2;serverChannel_0", 13110 "^": "Closure:2;serverChannel_0",
13117 call$1: function(message) { 13111 call$1: function(message) {
13118 var t1, suiteChannel, iframeChannel; 13112 var t1, suiteChannel, iframeChannel;
13119 t1 = J.getInterceptor$asx(message); 13113 t1 = J.getInterceptor$asx(message);
13120 suiteChannel = this.serverChannel_0.virtualChannel$1(t1.$index(message, "c hannel")); 13114 suiteChannel = this.serverChannel_0.virtualChannel$1(t1.$index(message, "c hannel"));
13121 iframeChannel = O._connectToIframe(t1.$index(message, "url")); 13115 iframeChannel = O._connectToIframe(t1.$index(message, "url"));
13116 suiteChannel.stream.pipe$1(iframeChannel.sink);
13122 iframeChannel.stream.pipe$1(suiteChannel.sink); 13117 iframeChannel.stream.pipe$1(suiteChannel.sink);
13123 suiteChannel.stream.pipe$1(iframeChannel.sink);
13124 } 13118 }
13125 }, 13119 },
13126 main_closure0: { 13120 main_closure0: {
13127 "^": "Closure:15;", 13121 "^": "Closure:15;",
13128 call$2: function(error, stackTrace) { 13122 call$2: function(error, stackTrace) {
13129 P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse() )); 13123 P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse() ));
13130 } 13124 }
13131 }, 13125 },
13132 _connectToServer_closure: { 13126 _connectToServer_closure: {
13133 "^": "Closure:2;inputController_0", 13127 "^": "Closure:2;inputController_0",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
13178 _connectToIframe__closure0: { 13172 _connectToIframe__closure0: {
13179 "^": "Closure:2;iframe_5", 13173 "^": "Closure:2;iframe_5",
13180 call$1: function(message) { 13174 call$1: function(message) {
13181 return J.postMessage$2$x(W._convertNativeToDart_Window(this.iframe_5.conte ntWindow), message, J.get$origin$x(window.location)); 13175 return J.postMessage$2$x(W._convertNativeToDart_Window(this.iframe_5.conte ntWindow), message, J.get$origin$x(window.location));
13182 } 13176 }
13183 } 13177 }
13184 }, 13178 },
13185 1], 13179 1],
13186 ["unittest.stream_channel", "package:unittest/src/util/stream_channel.dart", , X , { 13180 ["unittest.stream_channel", "package:unittest/src/util/stream_channel.dart", , X , {
13187 "^": "", 13181 "^": "",
13188 StreamChannel: { 13182 _StreamChannel: {
13189 "^": "Object;stream,sink" 13183 "^": "StreamChannelMixin;stream,sink"
13184 },
13185 StreamChannelMixin: {
13186 "^": "Object;"
13190 } 13187 }
13191 }], 13188 }],
13192 ]; 13189 ];
13193 parseReflectionData(dart); 13190 parseReflectionData(dart);
13194 // getInterceptor methods 13191 // getInterceptor methods
13195 J.getInterceptor = function(receiver) { 13192 J.getInterceptor = function(receiver) {
13196 if (typeof receiver == "number") { 13193 if (typeof receiver == "number") {
13197 if (Math.floor(receiver) == receiver) 13194 if (Math.floor(receiver) == receiver)
13198 return J.JSInt.prototype; 13195 return J.JSInt.prototype;
13199 return J.JSDouble.prototype; 13196 return J.JSDouble.prototype;
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
13997 else 13994 else
13998 (function(a) { 13995 (function(a) {
13999 H.startRootIsolate(O.main$closure(), a); 13996 H.startRootIsolate(O.main$closure(), a);
14000 })([]); 13997 })([]);
14001 }); 13998 });
14002 ; 13999 ;
14003 // END invoke [main]. 14000 // END invoke [main].
14004 })() 14001 })()
14005 14002
14006 //# sourceMappingURL=host.dart.js.map 14003 //# sourceMappingURL=host.dart.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698