1<!doctype html> 2<meta charset=utf-8> 3<title></title> 4<script src=/resources/testharness.js></script> 5<script src=/resources/testharnessreport.js></script> 6<script> 7setup({explicit_done:true}); 8function runTests() { 9 for (var i = 0; i < window.frames.length; i++) { 10 test(function() { 11 assert_equals(window.frames[i].window.document.body.textContent, "\uFEFF"); 12 }, "Should have removed only one BOM from frame " + i); 13 } 14 done(); 15} 16</script> 17<body onload="runTests()"> 18<iframe src="resources/two-boms-utf-8.html"></iframe> 19<iframe src="resources/two-boms-utf-16le.html"></iframe> 20<iframe src="resources/two-boms-utf-16be.html"></iframe> 21