Chromium Code Reviews| Index: LayoutTests/fast/events/message-port-clone.html |
| diff --git a/LayoutTests/fast/events/message-port-clone.html b/LayoutTests/fast/events/message-port-clone.html |
| index 02f81c8714f90ffca0ead132f0fab013e1ff347d..b738887c39dac0ee28e5e7149b694e40b1022833 100644 |
| --- a/LayoutTests/fast/events/message-port-clone.html |
| +++ b/LayoutTests/fast/events/message-port-clone.html |
| @@ -19,14 +19,14 @@ debug("Posting port to entangled pair neuters the port and does nothing else:"); |
| channel = new MessageChannel; |
| var channel2 = new MessageChannel; |
| channel.port1.postMessage("msg", [channel.port2]); |
| -shouldThrow("channel2.port1.postMessage('msg', [channel.port2])", '"DataCloneError: Failed to execute \'disentanglePorts\' on \'MessagePort\': Item #0 in the array of ports is already neutered."'); |
| +shouldThrow("channel2.port1.postMessage('msg', [channel.port2])", '"DataCloneError: Failed to execute \'postMessage\' on \'MessagePort\': Item #0 in the array of ports is already neutered."'); |
|
sof
2013/12/03 16:04:29
Can't we just do away with the duplication of exce
Mike West
2013/12/04 08:42:19
It's valuable to have a test fail if the exception
|
| channel = new MessageChannel; |
| channel2 = new MessageChannel |
| channel.port1.postMessage("msg", [channel2.port1]); |
| // Should not be able to post a cloned port. |
| -shouldThrow("channel.port1.postMessage('msg', [channel2.port1])", '"DataCloneError: Failed to execute \'disentanglePorts\' on \'MessagePort\': Item #0 in the array of ports is already neutered."'); |
| +shouldThrow("channel.port1.postMessage('msg', [channel2.port1])", '"DataCloneError: Failed to execute \'postMessage\' on \'MessagePort\': Item #0 in the array of ports is already neutered."'); |
| // Test posting messages to a port in cloned state. |