| <script src="../resources/js-test-pre.js"></script> |
| description("This test should create a Headers with strange Array, but the constructor should recognize it as an Array."); |
| let array = [ [ 'hello', 'world' ] ]; |
| var headers = new Headers(array); |
| shouldBeEqualToString("headers.get('hello')", "world"); |
| let array = new frame.Array(); |
| array.push([ 'hello', 'world' ]); |
| var headers = new Headers(array); |
| shouldBeEqualToString("headers.get('hello')", "world"); |
| <script src="../resources/js-test-post.js"></script> |