react-native/RNTester/RNTesterIntegrationTests
Tom Clarkson 42f7b9e717 Improved window.postMessage implementation
Summary:
Adds a queue to postMessage so that messages sent close together are not lost.

Setting location="a";location="b" results in only "b" reaching shouldStartLoadWithRequest. Making the second update asynchronous with setTimeout does not fix the issue unless a delay is added.

With this update, postMessage queues "b" until it gets a "message:received" event that confirms "a" has already been processed.

The included test sends two messages from a webview and checks that both are received. It fails against the preexisting code with the first message being dropped.
Closes https://github.com/facebook/react-native/pull/11304

Differential Revision: D5481385

Pulled By: hramos

fbshipit-source-id: 9b6af195eeff8f20c820e2fcdac997c90763e840
2017-07-28 11:35:25 -07:00
..
ReferenceImages Add support for flashScrollIndicators on iOS 2017-06-06 13:06:48 -07:00
Info.plist Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
RCTLoggingTests.m Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
RCTRootViewIntegrationTests.m Fix header on RNTester file 2017-06-13 09:47:14 -07:00
RCTUIManagerScenarioTests.m Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
RNTesterIntegrationTests.m Improved window.postMessage implementation 2017-07-28 11:35:25 -07:00
RNTesterSnapshotTests.m Add ART library to UIExplorer for iOS, with sample and snapshot test 2017-05-25 08:45:47 -07:00
RNTesterTestModule.m Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
blue_square.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
red_square.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00