TestPlatform.browserFromJson constructor

  1. @visibleForTesting
TestPlatform.browserFromJson(
  1. String browserPlatformJson
)

Creates a TestPlatform with a TestBrowserPlatform created from JSON.

A new TestBrowserPlatform is created using TestBrowserPlatform.fromJson with browserPlatformJson as argument, and a new TestPlatform is created with that native platform as Platform.browserPlatform.

Implementation

@visibleForTesting
TestPlatform.browserFromJson(String browserPlatformJson)
  : this._browser(TestBrowserPlatform.fromJson(browserPlatformJson));