react-native/IntegrationTests
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
..
AccessibilityManagerTest.js Fix crash in AccessibilityManager 2017-06-20 18:45:58 -07:00
AppEventsTest.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
AsyncStorageTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
ImageCachePolicyTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
ImageSnapshotTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
IntegrationTestHarnessTest.js Ran PropTypes -> prop-types codemod against Libraries/FBReactKit/js/react-native-github 2017-04-12 16:15:15 -07:00
IntegrationTestsApp.js Improved window.postMessage implementation 2017-07-28 11:35:25 -07:00
LayoutEventsTest.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
LoggingTestModule.js Fix timing issues in RCTLoggingTests.m 2016-10-27 01:43:34 -07:00
PromiseTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
PropertiesUpdateTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
RCTRootViewIntegrationTestApp.js Rename files to match @providesModule annotations 2017-02-03 15:58:58 -08:00
ReactContentSizeUpdateTest.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
SimpleSnapshotTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
SizeFlexibilityUpdateTest.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
SyncMethodTest.js Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
TimersTest.js Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
WebSocketTest.js Add @providesModule annotations 2017-02-27 14:04:56 -08:00
WebViewTest.js Improved window.postMessage implementation 2017-07-28 11:35:25 -07:00
blue_square.png Cleanup before image! codemod 2016-11-22 21:13:52 -08:00
launchWebSocketServer.command Add an integration test for WebSocket 2017-01-16 13:28:43 -08:00
red_square.png Cleanup before image! codemod 2016-11-22 21:13:52 -08:00
websocket_integration_test_server.js Fix license header on websocket_integration_test_server 2017-03-24 14:47:25 -07:00