Permalink
Browse files

rename www/ to test/

  • Loading branch information...
1 parent 14fb1f6 commit 17296d2eb12690e0b31886a6ad06eedeced4c73e @ragiragi ragiragi committed Nov 11, 2011
Showing with 11,221 additions and 11,225 deletions.
  1. +3 −7 README.markdown
  2. +50 −50 {www → test}/benchmark/_benchmark_suites.js
  3. +10 −10 {www → test}/benchmark/access_cssText.js
  4. +54 −54 {www → test}/benchmark/array_each.js
  5. +9 −9 {www → test}/benchmark/cloneNode.js
  6. +27 −27 {www → test}/benchmark/function_call.js
  7. +56 −56 {www → test}/benchmark/kindOf.js
  8. +14 −14 {www → test}/benchmark/localStorage.js
  9. +44 −44 {www → test}/benchmark/normalize_text.js
  10. +28 −28 {www → test}/benchmark/regexp.js
  11. 0 {www → test}/testcase/Assistant.js
  12. +182 −182 {www → test}/testcase/align_test.js
  13. 0 {www → test}/testcase/autosaver_test.js
  14. +52 −52 {www → test}/testcase/backcolor_test.js
  15. +123 −123 {www → test}/testcase/backspace_test.js
  16. +382 −382 {www → test}/testcase/bold_test.js
  17. +167 −167 {www → test}/testcase/domutil_test.js
  18. 0 {www → test}/testcase/editor_loader_test.js
  19. +41 −41 {www → test}/testcase/fixing_test.js
  20. 0 {www → test}/testcase/fixture/broken_dummy.js
  21. 0 {www → test}/testcase/fixture/dummy.js
  22. 0 {www → test}/testcase/fixture/value1.js
  23. 0 {www → test}/testcase/fixture/value2.js
  24. +85 −85 {www → test}/testcase/flatten_test.js
  25. +266 −266 {www → test}/testcase/fontTool_test.js
  26. +74 −74 {www → test}/testcase/fontfamily_test.js
  27. +43 −43 {www → test}/testcase/fontsize_test.js
  28. +25 −25 {www → test}/testcase/forecolor_test.js
  29. +319 −319 {www → test}/testcase/history_test.js
  30. +707 −707 {www → test}/testcase/indent_test.js
  31. +25 −25 {www → test}/testcase/infinite_loop_test.js
  32. +2,228 −2,228 {www → test}/testcase/lib/benchmark.js
  33. 0 {www → test}/testcase/lib/diff_match_patch.js
  34. 0 {www → test}/testcase/lib/qunit_2b3e049.css
  35. +1,267 −1,267 {www → test}/testcase/lib/qunit_2b3e049_patched.js
  36. +214 −214 {www → test}/testcase/lib/qunit_f2b99a6.css
  37. +1,441 −1,441 {www → test}/testcase/lib/qunit_f2b99a6.js
  38. +218 −218 {www → test}/testcase/lib/qunit_f2b99a6_patched.css
  39. +1,449 −1,449 {www → test}/testcase/lib/qunit_f2b99a6_patched.js
  40. 0 {www → test}/testcase/lib/sizzle-1.5.1.js
  41. +17 −17 {www → test}/testcase/moreless_test.js
  42. +287 −287 {www → test}/testcase/outdent_test.js
  43. 0 {www → test}/testcase/paste_test.js
  44. 0 {www → test}/testcase/processor_test.js
  45. 0 {www → test}/testcase/processor_webkit_test.js
  46. +41 −41 {www → test}/testcase/richtextbox_test.js
  47. +340 −340 {www → test}/testcase/styledlist_test.js
  48. +791 −791 {www → test}/testcase/tableedit.js
  49. 0 {www → test}/testcase/testsuites.js
  50. 0 {www → test}/testcase/txlib_test.js
  51. +71 −71 {www → test}/testcase/underline_test.js
  52. 0 {www → test}/testcase/webfontloader_test.js
  53. +71 −71 {www → test}/testcase/well_formed_test.js
  54. 0 {www → test}/testcase/wysiwyg_panel_test.js
  55. 0 {www → test}/testrunner.html
  56. 0 {www → test}/testrunner_benchmark.html
  57. 0 {www → test}/testrunner_loader.html
View
@@ -1,10 +1,6 @@
Daum Editor - The Daum Open Source WYSIWYG Web Editor
======================================================
-- `www/editor.html`
-- `daumeditor/js/editor.js`
-- `daumeditor/css/editor.css`
-
Setting up a development environment
------------------------------------
@@ -19,11 +15,11 @@ e.g. `httpd.conf`
Test Case
-e.g. `http://yourhostname/DaumEditor/www/testrunner.html`
+e.g. `http://yourhostname/DaumEditor/test/testrunner.html`
Sample
-e.g. `http://yourhostname/DaumEditor/www/editor.html`
+e.g. `http://yourhostname/DaumEditor/src/pages/editor.html`
Accessing with local url(file://) is also supported. but not recommended.
@@ -45,7 +41,7 @@ e.g.
`DaumEditor$ ant`
4. test
-`open 'build/dist/www/editor.html' in your browser`
+`open 'build/dist/pages/editor.html' in your browser`
Install
------------------------------------------
@@ -1,51 +1,51 @@
-(function() {
- var benches = [
- "benchmark/regexp.js",
- "benchmark/access_cssText.js",
- "benchmark/array_each.js",
- "benchmark/cloneNode.js",
- "benchmark/function_call.js",
- "benchmark/kindOf.js",
- "benchmark/normalize_text.js",
- "benchmark/localStorage.js"
- ];
-
- function importScript(url, encoding, context, success) {
- if (url == _NULL && url != "") {
- return;
- }
- encoding = encoding || "utf-8";
- context = context || _DOC;
- try {
- var head = context.getElementsByTagName("head")[0] || context.documentElement;
- var script = context.createElement("script");
- script.type = "text/javascript";
- script.charset = encoding;
- script.src = url;
-
- var done = _FALSE;
- script.onload = script.onreadystatechange = function() {
- if (!done && (!this.readyState ||
- this.readyState === "loaded" || this.readyState === "complete")) {
- done = _TRUE;
- if (success) {
- success();
- }
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = _NULL;
- if (head && script.parentNode) {
- head.removeChild(script);
- }
- }
- };
- head.insertBefore(script, head.firstChild);
- } catch(e) {
- console.log(e)
- }
- }
-
- for (var i = 0; i < benches.length; i++) {
- importScript(benches[i]);
- }
+(function() {
+ var benches = [
+ "benchmark/regexp.js",
+ "benchmark/access_cssText.js",
+ "benchmark/array_each.js",
+ "benchmark/cloneNode.js",
+ "benchmark/function_call.js",
+ "benchmark/kindOf.js",
+ "benchmark/normalize_text.js",
+ "benchmark/localStorage.js"
+ ];
+
+ function importScript(url, encoding, context, success) {
+ if (url == _NULL && url != "") {
+ return;
+ }
+ encoding = encoding || "utf-8";
+ context = context || _DOC;
+ try {
+ var head = context.getElementsByTagName("head")[0] || context.documentElement;
+ var script = context.createElement("script");
+ script.type = "text/javascript";
+ script.charset = encoding;
+ script.src = url;
+
+ var done = _FALSE;
+ script.onload = script.onreadystatechange = function() {
+ if (!done && (!this.readyState ||
+ this.readyState === "loaded" || this.readyState === "complete")) {
+ done = _TRUE;
+ if (success) {
+ success();
+ }
+
+ // Handle memory leak in IE
+ script.onload = script.onreadystatechange = _NULL;
+ if (head && script.parentNode) {
+ head.removeChild(script);
+ }
+ }
+ };
+ head.insertBefore(script, head.firstChild);
+ } catch(e) {
+ console.log(e)
+ }
+ }
+
+ for (var i = 0; i < benches.length; i++) {
+ importScript(benches[i]);
+ }
})();
@@ -1,11 +1,11 @@
-var node = document.createElement("div");
-node.style.cssText = "font-weight: bold";
-
-suite("access cssText");
-
-bench(".access", function() {
- var value = node.style.cssText;
-});
-bench("getAttribute", function() {
- var value = node.getAttribute("style");
+var node = document.createElement("div");
+node.style.cssText = "font-weight: bold";
+
+suite("access cssText");
+
+bench(".access", function() {
+ var value = node.style.cssText;
+});
+bench("getAttribute", function() {
+ var value = node.getAttribute("style");
});
@@ -1,55 +1,55 @@
-suite("array each");
-
-var contains = function(array, value) {
- for (var i = 0; i < array.length; i++) {
- if (array[i] == value) {
- return true;
- }
- }
- return false;
-};
-
-Array.prototype.contains = function(value) {
- for (var i = 0; i < this.length; i++) {
- if (this[i] == value) {
- return true;
- }
- }
- return false;
-};
-
-Array.prototype.newEach = function(fn) {
- try {
- for (var i = 0; i < this.length; i++) {
- fn(this[i]);
- }
- } catch (e) {
- if (e != $break) {
- throw e;
- }
- }
-};
-
-function eachContains(array, value) {
- var found = false;
- array.newEach(function(obj) {
- if (obj == value) {
- found = true;
- throw $break;
- }
- });
- return found;
-}
-
-bench("using loop w/o prototype", function() {
- var arr = [1,2,3,4,5,6,7,8,9];
- contains(arr, 9);
-});
-bench("using loop w/ prototype", function() {
- var arr = [1,2,3,4,5,6,7,8,9];
- arr.contains(9);
-});
-bench("using newEach", function() {
- var arr = [1,2,3,4,5,6,7,8,9];
- eachContains(arr, 9);
+suite("array each");
+
+var contains = function(array, value) {
+ for (var i = 0; i < array.length; i++) {
+ if (array[i] == value) {
+ return true;
+ }
+ }
+ return false;
+};
+
+Array.prototype.contains = function(value) {
+ for (var i = 0; i < this.length; i++) {
+ if (this[i] == value) {
+ return true;
+ }
+ }
+ return false;
+};
+
+Array.prototype.newEach = function(fn) {
+ try {
+ for (var i = 0; i < this.length; i++) {
+ fn(this[i]);
+ }
+ } catch (e) {
+ if (e != $break) {
+ throw e;
+ }
+ }
+};
+
+function eachContains(array, value) {
+ var found = false;
+ array.newEach(function(obj) {
+ if (obj == value) {
+ found = true;
+ throw $break;
+ }
+ });
+ return found;
+}
+
+bench("using loop w/o prototype", function() {
+ var arr = [1,2,3,4,5,6,7,8,9];
+ contains(arr, 9);
+});
+bench("using loop w/ prototype", function() {
+ var arr = [1,2,3,4,5,6,7,8,9];
+ arr.contains(9);
+});
+bench("using newEach", function() {
+ var arr = [1,2,3,4,5,6,7,8,9];
+ eachContains(arr, 9);
});
@@ -1,10 +1,10 @@
-var testDiv = document.createElement("div");
-
-suite("cloneNode");
-
-bench("clone으로 node 만들기", function() {
- testDiv.cloneNode(false);
-});
-bench("createElement로 node 만들기", function() {
- document.createElement("DIV");
+var testDiv = document.createElement("div");
+
+suite("cloneNode");
+
+bench("clone으로 node 만들기", function() {
+ testDiv.cloneNode(false);
+});
+bench("createElement로 node 만들기", function() {
+ document.createElement("DIV");
});
@@ -1,27 +1,27 @@
-suite("function call");
-
-bench("one empty var-function", function() {
- var a = function() {
- };
- var b = 1;
-});
-bench("one var-function with variable", function() {
- var a = function() {
- var c = 10;
- };
- var b = 1;
-});
-bench("use function keyword", function() {
- function a() {
- }
- var b = 1;
-});
-bench("use function keyword with variable", function() {
- function a() {
- var c = 10;
- }
- var b = 1;
-});
-bench("비교군", function() {
- var b = 1;
-});
+suite("function call");
+
+bench("one empty var-function", function() {
+ var a = function() {
+ };
+ var b = 1;
+});
+bench("one var-function with variable", function() {
+ var a = function() {
+ var c = 10;
+ };
+ var b = 1;
+});
+bench("use function keyword", function() {
+ function a() {
+ }
+ var b = 1;
+});
+bench("use function keyword with variable", function() {
+ function a() {
+ var c = 10;
+ }
+ var b = 1;
+});
+bench("비교군", function() {
+ var b = 1;
+});
Oops, something went wrong.

0 comments on commit 17296d2

Please sign in to comment.