There is no longer a safarimobilesim test runtime.

And so there is no need to maintain status files for this platform.

R=whesse@google.com

Change-Id: Ie70e4b7308cfd9b1b179b2d1eeeb8f36dd1a62dc
Reviewed-on: https://dart-review.googlesource.com/34824
Commit-Queue: Erik Corry <erikcorry@google.com>
Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
Erik Corry 2018-01-17 13:13:17 +00:00 committed by commit-bot@chromium.org
parent 99feac38cc
commit 5ed2f25f40
17 changed files with 65 additions and 2833 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -302,7 +302,7 @@ runtime_type_test: Fail, OK # Tests extected output of Type.toString().
to_string_test: Fail # Issue 7179.
typevariable_typedef_test: Fail, OK # Tests extected output of Type.toString().
[ $compiler == dart2js && ($runtime == chrome || $runtime == chromeOnAndroid || $runtime == drt || $runtime == ff || $runtime == safari || $runtime == safarimobilesim) ]
[ $compiler == dart2js && ($runtime == chrome || $runtime == chromeOnAndroid || $runtime == drt || $runtime == ff || $runtime == safari) ]
isolate2_test/01: Fail # Issue 14458.
[ $compiler == dart2js && ($runtime == chrome || $runtime == d8 || $runtime == drt) ]

View file

@ -63,6 +63,11 @@ string_trimlr_test/02: RuntimeError # Flutter Issue 9111
string_case_test/01: RuntimeError # jsshell does not recognize character 223 aka \xdf
unicode_test: RuntimeError # jsshell does not recognize character 223 aka \xdf
[ $runtime == safari ]
double_round3_test: RuntimeError
double_round_to_double2_test: Pass, Fail, OK
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $strong ]
*: SkipByDesign # tests/corelib_2 has the strong mode versions of these tests.
@ -107,12 +112,6 @@ core_runtime_types_test: Pass, Fail # Issue 27913
[ $compiler == dart2js && $runtime == none ]
*: Fail, Pass # TODO(ahe): Triage these tests.
[ $compiler == dart2js && $runtime == safarimobilesim ]
list_test/01: Fail # Safari bug: Array(-2) seen as dead code.
string_split_test: RuntimeError # Issue 21431
string_trimlr_test/01: Fail
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $compiler == dart2js && !$browser ]
package_resource_test: RuntimeError # Issue 26842
@ -418,11 +417,6 @@ regress_r21715_test: CompileTimeError # Large integer literal
[ $runtime == ff || $runtime == jsshell ]
double_parse_test/02: Fail, OK
[ $runtime == safari || $runtime == safarimobilesim ]
double_round3_test: RuntimeError
double_round_to_double2_test: Pass, Fail, OK
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $hot_reload || $hot_reload_rollback ]
big_integer_huge_mul_vm_test: Pass, Slow # Slow
big_integer_parsed_mul_div_vm_test: Pass, Slow # Slow.

View file

@ -72,6 +72,11 @@ string_trimlr_test/02: RuntimeError # Flutter Issue 9111
string_case_test/01: Fail, OK
unicode_test: Fail
[ $runtime == safari ]
double_round3_test: Fail, OK # Runtime rounds 0.49999999999999994 to 1.
double_round_to_double2_test: Fail, OK # Runtime rounds 0.49999999999999994 to 1.
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $runtime == vm ]
string_case_test/01: RuntimeError
@ -164,11 +169,6 @@ regexp/lookahead_test: RuntimeError
regexp/no-extensions_test: RuntimeError
regexp/overflow_test: RuntimeError
[ $compiler == dart2js && $runtime == safarimobilesim ]
list_test/01: Fail # Safari bug: Array(-2) seen as dead code.
string_trimlr_test/01: Fail
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $compiler == dart2js && !$browser ]
package_resource_test: RuntimeError # Issue 26842
@ -656,11 +656,6 @@ string_split_test: RuntimeError # does not return List<String>
double_parse_test/02: Fail, OK # Issue 30468
regexp/UC16_test: RuntimeError
[ $runtime == safari || $runtime == safarimobilesim ]
double_round3_test: Fail, OK # Runtime rounds 0.49999999999999994 to 1.
double_round_to_double2_test: Fail, OK # Runtime rounds 0.49999999999999994 to 1.
string_trimlr_test/02: RuntimeError # Uses Unicode 6.2.0 or earlier.
[ $hot_reload || $hot_reload_rollback ]
bigint_parse_radix_test: Pass, Timeout # Issue 31659
bigint_test: Pass, Crash # Issue 31660

View file

@ -123,6 +123,15 @@ xsltprocessor_test/supported: Fail # IE11 Feature support statuses - These resul
[ $runtime == safari ]
audiobuffersourcenode_test/functional: RuntimeError
canvasrenderingcontext2d_test/drawImage_video_element: Fail # Safari does not support drawImage w/ video element
canvasrenderingcontext2d_test/drawImage_video_element_dataUrl: Fail # Safari does not support drawImage w/ video element
element_animate_test: Fail # Element.animate not supported on these browsers.
element_test: Pass, Fail # Issue 21434
element_types_test/supported_content: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
element_types_test/supported_datalist: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
element_types_test/supported_shadow: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
fileapi_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
gamepad_test: Fail # Safari does not support Navigator.getGamepads()
indexeddb_1_test/functional: Skip # Times out. Issue 21433
indexeddb_2_test: RuntimeError # Issue 21433
indexeddb_3_test: Skip # Times out 1 out of 10.
@ -133,20 +142,17 @@ input_element_test/supported_datetime-local: Fail
input_element_test/supported_month: RuntimeError
input_element_test/supported_time: RuntimeError
input_element_test/supported_week: RuntimeError
media_stream_test/supported_MediaStreamEvent: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
media_stream_test/supported_MediaStreamTrackEvent: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
media_stream_test/supported_media: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
mediasource_test: Pass, Fail # MediaSource only available on Safari 8 desktop, we can't express that.
notification_test/constructors: Fail # Safari doesn't let us access the fields of the Notification to verify them.
rtc_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
shadow_dom_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
speechrecognition_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
touchevent_test/supported: Fail # Safari does not support TouchEvents
[ $runtime == safarimobilesim ]
element_offset_test/offset: RuntimeError # Issue 18573
element_types_test/supported_meter: RuntimeError # Issue 18573
element_types_test/supported_template: Fail
event_test: RuntimeError # Safarimobilesim does not support WheelEvent
indexeddb_1_test/supported: Fail
notification_test/constructors: Pass # Safari mobile will pass this test on the basis that notifications aren't supported at all.
notification_test/supported_notification: RuntimeError # Issue 22869
performance_api_test/supported: Fail
wheelevent_test: RuntimeError # Safarimobilesim does not support WheelEvent
xhr_test/json: Fail # Safari doesn't support JSON response type
webgl_1_test: Pass, Fail # Issue 8219
worker_api_test: Skip # Issue 13221
[ $builder_tag == strong && $compiler == dart2analyzer ]
*: Skip # Issue 28649
@ -343,7 +349,7 @@ svgelement_test/supported_altGlyph: RuntimeError # Issue 25787
[ $compiler == dart2js && ($runtime == drt || $runtime == ff) ]
request_animation_frame_test: Skip # Async test hangs.
[ $compiler == dart2js && ($runtime == ff || $runtime == safari || $runtime == safarimobilesim || $ie) ]
[ $compiler == dart2js && ($runtime == ff || $runtime == safari || $ie) ]
custom/attribute_changed_callback_test/unsupported_on_polyfill: Fail # Polyfill does not support
custom/entered_left_view_test/viewless_document: Fail # Polyfill does not handle this
fontface_test: Fail # Fontface not supported on these.
@ -366,26 +372,6 @@ webgl_1_test: Pass, Fail # Issue 8219
[ $runtime == dart_precompiled || $runtime == vm ]
*: Skip
[ $runtime == safari || $runtime == safarimobilesim ]
canvasrenderingcontext2d_test/drawImage_video_element: Fail # Safari does not support drawImage w/ video element
canvasrenderingcontext2d_test/drawImage_video_element_dataUrl: Fail # Safari does not support drawImage w/ video element
element_animate_test: Fail # Element.animate not supported on these browsers.
element_test: Pass, Fail # Issue 21434
element_types_test/supported_content: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
element_types_test/supported_datalist: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
element_types_test/supported_shadow: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
fileapi_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
gamepad_test: Fail # Safari does not support Navigator.getGamepads()
media_stream_test/supported_MediaStreamEvent: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
media_stream_test/supported_MediaStreamTrackEvent: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
media_stream_test/supported_media: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
mediasource_test: Pass, Fail # MediaSource only available on Safari 8 desktop, we can't express that.
rtc_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
shadow_dom_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
speechrecognition_test/supported: Fail # Safari Feature support statuses - All changes should be accompanied by platform support annotation changes.
webgl_1_test: Pass, Fail # Issue 8219
worker_api_test: Skip # Issue 13221
[ $system == windows || $runtime == drt && $system == macos ]
xhr_test/xhr: Skip # Times out. Issue 21527

View file

@ -73,9 +73,6 @@ timer_isolate_test: Fail, OK # Needs Timer to run.
cross_isolate_message_test: Skip # Issue 12627
message_test: Skip # Issue 12627
[ $compiler == dart2js && $runtime == safarimobilesim ]
compile_time_error_test/none: Pass, Slow
[ $compiler == dart2js && !$browser && $fast_startup ]
isolate_current_test: Fail # please triage

View file

@ -40,8 +40,8 @@ regress_23996_test: RuntimeError # Jsshell does not provide non-zero timers, Iss
[ $compiler == dart2js && $runtime == none && $dart2js_with_kernel ]
*: Fail, Pass, Crash # TODO(sigmund): we should have no crashes when migration completes
[ $compiler == dart2js && $runtime == safarimobilesim ]
call_through_getter_test: Fail, OK # Safari codegen bug, fixed on some versions of Safari 7.1 (Version 7.1 (9537.85.10.17.1))
[ $compiler == dart2js && $runtime == safari ]
round_test: Fail, OK # Common JavaScript engine Math.round bug.
[ $compiler == dart2js && $system == windows && ($runtime == chrome || $runtime == ff) ]
string_literals_test: RuntimeError # Issue 27533
@ -1652,9 +1652,6 @@ mixin_mixin_bound2_test: RuntimeError # Issue 12605
mixin_mixin_bound_test: RuntimeError # Issue 12605
symbol_conflict_test: RuntimeError # Issue 23857
[ $compiler == dart2js && ($runtime == safari || $runtime == safarimobilesim) ]
round_test: Fail, OK # Common JavaScript engine Math.round bug.
[ !$dart2js_with_kernel && $minified ]
regress_21795_test: RuntimeError # Issue 12605
stack_trace_test: Fail, OK # Stack trace not preserved in minified code.

View file

@ -1061,9 +1061,6 @@ field_override_optimization_test: RuntimeError
field_type_check2_test/01: MissingRuntimeError
round_test: Fail, OK # Common JavaScript engine Math.round bug.
[ $compiler == dart2js && $runtime == safarimobilesim && !$dart2js_with_kernel ]
call_through_getter_test: Fail, OK
[ $compiler == dart2js && $system == windows && !$dart2js_with_kernel ]
string_literals_test: Pass, RuntimeError # Failures on dart2js-win7-chrome-4-4-be and dart2js-win7-ie11ff-4-4-be

View file

@ -149,6 +149,11 @@ async/stream_empty_test: Skip # Flutter Issue 9113
async/stream_event_transformed_test: Skip # Flutter Issue 9113
mirrors/*: Skip # Flutter does not support mirrors.
[ $runtime == safari ]
convert/json_test: Fail # https://bugs.webkit.org/show_bug.cgi?id=134920
typed_data/float32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
typed_data/int32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
[ $runtime == vm ]
convert/streamed_conversion_json_utf8_decode_test: Pass, Slow # Infrequent timeouts.
@ -180,6 +185,11 @@ convert/streamed_conversion_json_utf8_decode_test: Pass, Slow
convert/streamed_conversion_json_utf8_decode_test: Skip # Timeout.
mirrors/immutable_collections_test: SkipSlow # Timeout.
[ $builder_tag == mac10_7 && $runtime == safari ]
typed_data/setRange_2_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_3_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_4_test: Fail # Safari doesn't fully implement spec for TypedArray.set
[ $builder_tag == strong && $compiler == dart2analyzer ]
*: Skip # Issue 28649
@ -234,10 +244,6 @@ async/zone_create_timer2_test: RuntimeError # Timer interface not supported: Iss
async/zone_empty_description2_test: RuntimeError # Timer interface not supported: Issue 7728.
mirrors/mirrors_reader_test: Skip # Running in v8 suffices. Issue 16589 - RuntimeError. Issue 22130 - Crash (out of memory).
[ $compiler == dart2js && $runtime == safarimobilesim ]
mirrors/mirrors_reader_test: SkipSlow # Times out. Issue 20806.
mirrors/null_test: Fail # Issue 16831
[ $compiler == dart2js && $checked ]
convert/utf85_test: Pass, Slow # Issue 12029.
@ -487,16 +493,6 @@ mirrors/deferred_type_test: CompileTimeError, OK # Don't have a multitest marker
mirrors/native_class_test: Fail, OK # This test is meant to run in a browser.
typed_data/int32x4_bigint_test: CompileTimeError # Large integer literal
[ $runtime == safari || $runtime == safarimobilesim ]
convert/json_test: Fail # https://bugs.webkit.org/show_bug.cgi?id=134920
typed_data/float32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
typed_data/int32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
[ $runtime == safarimobilesim || $builder_tag == mac10_7 && $runtime == safari ]
typed_data/setRange_2_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_3_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_4_test: Fail # Safari doesn't fully implement spec for TypedArray.set
[ $hot_reload || $hot_reload_rollback ]
async/stream_transformer_test: Pass, Fail # Closure identity
mirrors/fake_function_with_call_test: SkipByDesign # Method equality

View file

@ -74,7 +74,14 @@ html/worker_test/functional: Pass, Fail # Issues 20659.
html/xhr_test/json: Fail # IE10 returns string, not JSON object
[ $runtime == safari ]
convert/json_test: Fail # https://bugs.webkit.org/show_bug.cgi?id=134920
html/audiobuffersourcenode_test/functional: RuntimeError
html/canvasrenderingcontext2d_test/drawImage_video_element: Fail # Safari does not support drawImage w/ video element
html/canvasrenderingcontext2d_test/drawImage_video_element_dataUrl: Fail # Safari does not support drawImage w/ video element
html/element_animate_test: Fail # Element.animate not supported on these browsers.
html/element_test: Pass, Fail # Issue 21434
html/fileapi_supported_test: Fail
html/gamepad_test: Fail # Safari does not support Navigator.getGamepads()
html/indexeddb_1_test/functional: Skip # Times out. Issue 21433
html/indexeddb_2_test: RuntimeError # Issue 21433
html/indexeddb_3_test: Skip # Times out 1 out of 10.
@ -85,17 +92,17 @@ html/input_element_datetime_test: Fail
html/input_element_month_test: RuntimeError
html/input_element_time_test: RuntimeError
html/input_element_week_test: RuntimeError
html/media_stream_test: Pass, Fail
html/mediasource_test: Pass, Fail # MediaSource only available on Safari 8 desktop, we can't express that.
html/notification_test: Fail # Safari doesn't let us access the fields of the Notification to verify them.
html/rtc_test: Fail
html/shadow_dom_test: Fail
html/speechrecognition_test: Fail
html/touchevent_test: Fail # Safari does not support TouchEvents
[ $runtime == safarimobilesim ]
html/element_offset_test/offset: RuntimeError # Issue 18573
html/event_test: RuntimeError # Safarimobilesim does not support WheelEvent
html/indexeddb_1_test/supported: Fail
html/notification_test: RuntimeError # Issue 22869
html/performance_api_test/supported: Fail
html/wheelevent_test: RuntimeError # Safarimobilesim does not support WheelEvent
html/xhr_test/json: Fail # Safari doesn't support JSON response type
html/webgl_1_test: Pass, Fail # Issue 8219
html/worker_api_test: Skip # Issue 13221
typed_data/float32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
typed_data/int32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
[ $csp ]
isolate/browser/package_resolve_browser_hook_test: SkipByDesign # Test written in a way that violates CSP.
@ -118,6 +125,11 @@ typed_data/float32x4_static_test: MissingCompileTimeError
typed_data/int32x4_static_test/01: MissingCompileTimeError
typed_data/int32x4_static_test/02: MissingCompileTimeError
[ $builder_tag == mac10_7 && $runtime == safari ]
typed_data/setRange_2_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_3_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_4_test: Fail # Safari doesn't fully implement spec for TypedArray.set
[ $compiler != dart2analyzer && $runtime != none && $checked && !$strong ]
mirrors/redirecting_factory_different_type_test/02: RuntimeError
@ -215,29 +227,6 @@ isolate/browser/*: SkipByDesign # Browser specific tests
isolate/isolate_stress_test: Skip # Issue 12588: Uses dart:html. This should be able to pass when we have wrapper-less tests.
isolate/stacktrace_message_test: RuntimeError # Fails to send stacktrace object.
[ $runtime == safari || $runtime == safarimobilesim ]
convert/json_test: Fail # https://bugs.webkit.org/show_bug.cgi?id=134920
html/canvasrenderingcontext2d_test/drawImage_video_element: Fail # Safari does not support drawImage w/ video element
html/canvasrenderingcontext2d_test/drawImage_video_element_dataUrl: Fail # Safari does not support drawImage w/ video element
html/element_animate_test: Fail # Element.animate not supported on these browsers.
html/element_test: Pass, Fail # Issue 21434
html/fileapi_supported_test: Fail
html/gamepad_test: Fail # Safari does not support Navigator.getGamepads()
html/media_stream_test: Pass, Fail
html/mediasource_test: Pass, Fail # MediaSource only available on Safari 8 desktop, we can't express that.
html/rtc_test: Fail
html/shadow_dom_test: Fail
html/speechrecognition_test: Fail
html/webgl_1_test: Pass, Fail # Issue 8219
html/worker_api_test: Skip # Issue 13221
typed_data/float32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
typed_data/int32x4_test: Fail, Pass # Safari has an optimization bug (nightlies are already fine).
[ $runtime == safarimobilesim || $builder_tag == mac10_7 && $runtime == safari ]
typed_data/setRange_2_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_3_test: Fail # Safari doesn't fully implement spec for TypedArray.set
typed_data/setRange_4_test: Fail # Safari doesn't fully implement spec for TypedArray.set
[ $system == windows || $runtime == drt && $system == macos ]
html/xhr_test/xhr: Skip # Times out. Issue 21527

View file

@ -271,9 +271,6 @@ html/file_sample_test: Skip # FileSystem not supported on Safari.
isolate/cross_isolate_message_test: Skip # Issue 12627
isolate/message_test: Skip # Issue 12627
[ $compiler == dart2js && $runtime == safarimobilesim ]
isolate/compile_time_error_test/none: Pass, Slow
[ $compiler == dart2js && $system == linux ]
html/interactive_geolocation_test: Skip # Requires allowing geo location.
@ -780,7 +777,7 @@ html/fileapi_file_entry_test: Fail, Pass # TODO(dart2js-team): Please triage thi
html/fileapi_file_test: Fail, Pass # TODO(dart2js-team): Please triage this failure.
isolate/browser/issue_12474_test: RuntimeError # packageRoot not implemented.
[ $compiler == dart2js && ($runtime == ff || $runtime == safari || $runtime == safarimobilesim || $ie) ]
[ $compiler == dart2js && ($runtime == ff || $runtime == safari || $ie) ]
html/custom/attribute_changed_callback_test/unsupported_on_polyfill: Fail # Polyfill does not support
html/custom/entered_left_view_test/viewless_document: Fail # Polyfill does not handle this
html/fontface_test: Fail # Fontface not supported on these.

View file

@ -114,7 +114,6 @@ class Compiler {
Runtime.ie11,
Runtime.opera,
Runtime.chromeOnAndroid,
Runtime.safariMobileSim
];
case Compiler.dartdevc:
@ -250,7 +249,6 @@ class Runtime {
static const ie11 = const Runtime._('ie11');
static const opera = const Runtime._('opera');
static const chromeOnAndroid = const Runtime._('chromeOnAndroid');
static const safariMobileSim = const Runtime._('safarimobilesim');
static const contentShellOnAndroid = const Runtime._('ContentShellOnAndroid');
static const selfCheck = const Runtime._('self_check');
static const none = const Runtime._('none');
@ -272,7 +270,6 @@ class Runtime {
ie11,
opera,
chromeOnAndroid,
safariMobileSim,
contentShellOnAndroid,
selfCheck,
none
@ -302,7 +299,6 @@ class Runtime {
chrome,
firefox,
chromeOnAndroid,
safariMobileSim,
contentShellOnAndroid
].contains(this);
@ -337,7 +333,6 @@ class Runtime {
case ie11:
case opera:
case chromeOnAndroid:
case safariMobileSim:
case contentShellOnAndroid:
return Compiler.dart2js;

View file

@ -84,9 +84,6 @@ abstract class Browser {
case Runtime.safari:
browser = new Safari();
break;
case Runtime.safariMobileSim:
browser = new SafariMobileSimulator();
break;
case Runtime.ie9:
case Runtime.ie10:
case Runtime.ie11:
@ -517,69 +514,6 @@ class Chrome extends Browser {
String toString() => "Chrome";
}
class SafariMobileSimulator extends Safari {
/**
* Directories where safari simulator stores state. We delete these if the
* resetBrowserConfiguration is set
*/
static const List<String> CACHE_DIRECTORIES = const [
"Library/Application Support/iPhone Simulator/7.1/Applications"
];
// Helper function to delete many directories recursively.
Future<bool> deleteIfExists(Iterable<String> paths) async {
for (var path in paths) {
Directory directory = new Directory(path);
if (await directory.exists()) {
_logEvent("Deleting $path");
try {
await directory.delete(recursive: true);
} catch (error) {
_logEvent("Failure trying to delete $path: $error");
return false;
}
} else {
_logEvent("$path is not present");
}
}
return true;
}
// Clears the cache if the static resetBrowserConfiguration flag is set.
// Returns false if the command to actually clear the cache did not complete.
Future<bool> resetConfiguration() {
if (!Browser.resetBrowserConfiguration) return new Future.value(true);
var home = Platform.environment['HOME'];
var paths = CACHE_DIRECTORIES.map((s) => "$home/$s");
return deleteIfExists(paths);
}
Future<bool> start(String url) {
_logEvent("Starting safari mobile simulator browser on: $url");
return resetConfiguration().then((success) {
if (!success) {
_logEvent("Could not clear cache, exiting");
return false;
}
var args = [
"-SimulateApplication",
"/Applications/Xcode.app/Contents/Developer/Platforms/"
"iPhoneSimulator.platform/Developer/SDKs/"
"iPhoneSimulator7.1.sdk/Applications/MobileSafari.app/"
"MobileSafari",
"-u",
url
];
return startBrowserProcess(_binary, args).catchError((e) {
_logEvent("Running $_binary --version failed with $e");
return false;
});
});
}
String toString() => "SafariMobileSimulator";
}
class IE extends Browser {
Future<String> getVersion() {
var args = [

View file

@ -318,11 +318,6 @@ class Configuration {
Runtime.safari: const {
System.macos: '/Applications/Safari.app/Contents/MacOS/Safari'
},
Runtime.safariMobileSim: const {
System.macos: '/Applications/Xcode.app/Contents/Developer/Platforms/'
'iPhoneSimulator.platform/Developer/Applications/'
'iPhone Simulator.app/Contents/MacOS/iPhone Simulator'
},
Runtime.ie9: const {
System.windows: 'C:\\Program Files\\Internet Explorer\\iexplore.exe'
},
@ -593,7 +588,6 @@ class Compiler {
Runtime.ie11,
Runtime.opera,
Runtime.chromeOnAndroid,
Runtime.safariMobileSim
];
case Compiler.dartdevc:
@ -729,7 +723,6 @@ class Runtime {
static const ie11 = const Runtime._('ie11');
static const opera = const Runtime._('opera');
static const chromeOnAndroid = const Runtime._('chromeOnAndroid');
static const safariMobileSim = const Runtime._('safarimobilesim');
static const contentShellOnAndroid = const Runtime._('ContentShellOnAndroid');
static const selfCheck = const Runtime._('self_check');
static const none = const Runtime._('none');
@ -751,7 +744,6 @@ class Runtime {
ie11,
opera,
chromeOnAndroid,
safariMobileSim,
contentShellOnAndroid,
selfCheck,
none
@ -781,7 +773,6 @@ class Runtime {
chrome,
firefox,
chromeOnAndroid,
safariMobileSim,
contentShellOnAndroid
].contains(this);
@ -816,7 +807,6 @@ class Runtime {
case ie11:
case opera:
case chromeOnAndroid:
case safariMobileSim:
case contentShellOnAndroid:
return Compiler.dart2js;

View file

@ -29,7 +29,6 @@ abstract class RuntimeConfiguration {
case Runtime.ie9:
case Runtime.opera:
case Runtime.safari:
case Runtime.safariMobileSim:
// TODO(ahe): Replace this with one or more browser runtimes.
return new DummyRuntimeConfiguration();

View file

@ -54,7 +54,7 @@ final _combinations = {
'compiler': 'none'
},
{
'runtimes': ['safari', 'safarimobilesim'],
'runtimes': ['safari'],
'modes': ['release'],
'archs': ['ia32'],
'compiler': 'dart2js'