[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / workers / constructor-proto.html
1 <!DOCTYPE html>
2 <script src="../js/resources/js-test-pre.js"></script>
3 <script src="resources/worker-create-common.js"></script>
4 <script>
5
6 var jsTestIsAsync = true;
7
8 description('This tests that setting the proto of a built in constructor is not reset');
9
10 var worker = createWorker();
11 worker.postMessage("eval proto = new Number(42)");
12 worker.postMessage("eval Object.getPrototypeOf(WorkerLocation)");
13 worker.postMessage("eval WorkerLocation.__proto__ = proto");
14 worker.postMessage("eval Object.getPrototypeOf(WorkerLocation)");
15 worker.postMessage("eval DONE");
16
17 worker.onmessage = function(evt) {
18     if (!/DONE/.test(evt.data))
19         debug(evt.data.replace(new RegExp("/.*LayoutTests"), "<...>"));
20     else
21         finishJSTest();
22 };
23
24 </script>
25 <script src="../js/resources/js-test-post.js"></script>