Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html |
| diff --git a/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html b/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ea69c9aca292a24ee429b69f3e58f8881cd1afac |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/security/immutable-prototype-worker.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<script> |
| +'use strict'; |
| + |
| +let expected = ['immutable', 'immutable', 'immutable', 'immutable', 'immutable']; |
| + |
| +async_test(function(t) { |
| + let worker = new Worker('immutable-prototype-worker.js'); |
| + worker.onmessage = t.step_func_done(function(result) { |
| + assert_array_equals(expected, result.data); |
| + }); |
| +}, 'worker prototype chain should be immutable'); |
| +</script> |
| +</html> |
| + |
|
Yuki
2016/11/09 07:06:44
nit: unnecessary empty lines.
|
| + |