Ticket #5368: memoryLeak.html

File memoryLeak.html, 1.0 KB (added by oarnault, 11 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<!--
3Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
4For licensing, see LICENSE.html or http://ckeditor.com/license
5-->
6<html xmlns="http://www.w3.org/1999/xhtml">
7<head>
8<title>CKEditor memory leak</title>
9<meta content="text/html; charset=utf-8" http-equiv="content-type" />
10<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
11
12<script type="text/javascript">
13        value = "";
14        for ( var i = 1; i < 1000000; i++) {
15                value += "a";
16                if (i % 100 == 0) {
17                        value += "<br />";
18                }
19        };
20
21        function fillTextArea() {
22                for(var i= 0 ; i < 10 ; i++){
23                        window.CKEDITOR.instances['editor1'].setData(value);           
24                }
25        }
26</script>
27
28</head>
29
30
31<body onload="CKEDITOR.replace( 'editor1'); window.CKEDITOR.instances['editor1'].setData(value) ">
32<button onclick=
33        fillTextArea();
34>Put 10 times 1 million 'a' in textArea</button>
35<textarea id="editor1">
36</textarea>
37</body>
38</html>
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy