Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_14980201
ueditor
提交
8936e47d
U
ueditor
项目概览
qq_14980201
/
ueditor
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
ueditor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8936e47d
编写于
11月 19, 2013
作者:
Y
yancend
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test]用例调整
上级
3c6e4fc7
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
28 addition
and
24 deletion
+28
-24
_test/build_run_plugin.xml
_test/build_run_plugin.xml
+1
-1
_test/plugins/anchor.js
_test/plugins/anchor.js
+1
-1
_test/plugins/background.js
_test/plugins/background.js
+4
-4
_test/plugins/defaultfilter.js
_test/plugins/defaultfilter.js
+1
-1
_test/plugins/elementpath.js
_test/plugins/elementpath.js
+3
-3
_test/plugins/font.js
_test/plugins/font.js
+2
-2
_test/plugins/keystrokes.js
_test/plugins/keystrokes.js
+3
-3
_test/plugins/searchreplace.js
_test/plugins/searchreplace.js
+2
-2
_test/plugins/source.js
_test/plugins/source.js
+2
-2
_test/plugins/table.action.js
_test/plugins/table.action.js
+1
-1
_test/plugins/table.cmds.js
_test/plugins/table.cmds.js
+1
-1
_test/plugins/table.core.js
_test/plugins/table.core.js
+1
-0
_test/plugins/table.sort.js
_test/plugins/table.sort.js
+1
-1
_test/plugins/wordcount.js
_test/plugins/wordcount.js
+1
-1
_test/tools/br/config.php
_test/tools/br/config.php
+4
-1
未找到文件。
_test/build_run_plugin.xml
浏览文件 @
8936e47d
...
...
@@ -61,7 +61,7 @@
<!--</target>-->
<target
name=
"executeplugin"
depends=
"init,coverage"
>
<get
src=
"http://${serverip}/${git.project}/_test/tools/br/runall.php?ci=true&cov=true&filter=plugins&ie8main=plugins,!plugins/t,!plugins/w,!plugins/s;plugins/source&ie8supp=plugins/t;plugins/w;plugins/s"
<get
src=
"http://${serverip}/${git.project}/_test/tools/br/runall.php?ci=true&cov=true&filter=plugins&ie8main=plugins,!plugins/t,!plugins/w,!plugins/s;plugins/source&ie8supp=plugins/t;plugins/w;plugins/s
&ie9main=plugins,!plugins/t,!plugins/w,!plugins/s;plugins/source&ie9supp=plugins/t;plugins/w;plugins/s
"
dest=
"/tmp/${git.user}_${git.project}plugin.php"
/>
</target>
<target
name=
"getreportplugin"
depends=
"init,coverage,executeplugin"
>
...
...
_test/plugins/anchor.js
浏览文件 @
8936e47d
...
...
@@ -28,7 +28,7 @@ test( '插入锚点后切换源码', function() {
setTimeout
(
function
()
{
start
();
},
50
);
},
1
00
);
},
2
00
);
},
20
);
}
);
...
...
_test/plugins/background.js
浏览文件 @
8936e47d
...
...
@@ -24,7 +24,7 @@ test( 'getAllHtml能取到背景', function() {
});
stop
();
}
);
test
(
'
active
trace 3744 setContent 背景色
'
,
function
()
{
test
(
'
trace 3744 setContent 背景色
'
,
function
()
{
var
editor
=
te
.
obj
[
0
];
editor
.
setContent
(
'
<p> <br/></p><p style="display:none;" data-background="background-repeat:no-repeat; background-position:center center; background-color:#8064A2; "> <br/></p>
'
);
stop
();
...
...
@@ -33,7 +33,7 @@ test( 'active trace 3744 setContent 背景色', function() {
start
();
},
50
);
});
test
(
'
ie active
trace 3751 3748 设置 背景色
'
,
function
()
{
test
(
'
trace 3751 3748 设置 背景色
'
,
function
()
{
var
editor
=
te
.
obj
[
0
];
var
backgroundStyle
=
{
'
background-repeat
'
:
"
no-repeat
"
,
'
background-position
'
:
"
center center
"
,
'
background-color
'
:
"
#4F81BD
"
};
editor
.
setContent
(
'
<p><br/></p>
'
);
...
...
@@ -41,8 +41,8 @@ test( 'ie active trace 3751 3748 设置 背景色', function() {
stop
();
setTimeout
(
function
(){
equal
(
editor
.
queryCommandValue
(
'
background
'
)[
'
background-repeat
'
],
'
no-repeat
'
);
equal
(
editor
.
queryCommandValue
(
'
background
'
)[
'
background-color
'
].
toLowerCase
(
),
'
#4f81bd
'
);
same
(
editor
.
queryCommandValue
(
'
background
'
)[
'
background-position
'
],
"
center center
"
);
equal
(
ua
.
formatColor
(
editor
.
queryCommandValue
(
'
background
'
)[
'
background-color
'
].
toLowerCase
()
),
'
#4f81bd
'
);
ok
(
/center/
.
test
(
editor
.
queryCommandValue
(
'
background
'
)[
'
background-position
'
])
);
editor
.
execCommand
(
'
source
'
);
setTimeout
(
function
(){
ua
.
checkSameHtml
(
editor
.
body
.
lastChild
.
outerHTML
,
'
<p style="display:none;" data-background="background-repeat:no-repeat; background-position:center center; background-color:#4F81BD; "><br/></p>
'
,
'
source查看 背景色
'
);
...
...
_test/plugins/defaultfilter.js
浏览文件 @
8936e47d
...
...
@@ -192,7 +192,7 @@ test( 'trace 3698 1.3.0 版本修复: script(style)标签里面的内容不转
equal
(
editor
.
document
.
getElementById
(
'
myEditor
'
).
innerHTML
,
'
var ue=UE.getEditor("editor");
'
,
'
内容不转码
'
)
// todo 1.3.0 trace 3698
editor
.
setContent
(
'
<style type="text/css" id="myEditor"> .clear { clear: both; } </style>
'
);
equal
(
editor
.
document
.
getElementById
(
'
myEditor
'
).
innerHTML
,
'
.clear { clear: both; }
'
,
'
内容不转码
'
);
equal
(
editor
.
getContent
(),
'
<p><br/></p><style type="text/css" id="myEditor">.clear { clear: both; }</style>
'
,
'
内容不转码
'
);
}
);
test
(
'
转换style标签:style data不为空
'
,
function
()
{
var
editor
=
te
.
obj
[
0
];
...
...
_test/plugins/elementpath.js
浏览文件 @
8936e47d
...
...
@@ -76,10 +76,10 @@ test('通过选区路径取range', function () {
editor
.
execCommand
(
'
elementpath
'
,
'
3
'
);
setTimeout
(
function
()
{
range
=
editor
.
selection
.
getRange
();
if
(
ua
.
browser
.
gecko
||
ua
.
browser
.
ie
>
8
)
{
if
(
ua
.
browser
.
gecko
||
ua
.
browser
.
ie
>
9
)
{
ua
.
checkResult
(
range
,
tbodys
[
0
],
tbodys
[
0
],
1
,
2
,
false
,
'
取range--tr
'
);
}
else
{
if
(
ua
.
browser
.
ie
&&
ua
.
browser
.
ie
<
9
)
if
(
ua
.
browser
.
ie
&&
ua
.
browser
.
ie
<
10
)
ua
.
checkResult
(
range
,
tds
[
2
].
firstChild
,
tds
[
3
].
lastChild
,
0
,
2
,
false
,
'
取range--tr
'
);
else
ua
.
checkResult
(
range
,
tds
[
2
].
firstChild
,
editor
.
body
,
0
,
1
,
false
,
'
取range--tr
'
);
...
...
@@ -111,7 +111,7 @@ test('通过选区路径取range', function () {
start
();
},
20
);
},
20
);
},
2
0
);
},
10
0
);
},
20
);
},
50
);
});
...
...
_test/plugins/font.js
浏览文件 @
8936e47d
...
...
@@ -106,8 +106,8 @@ test('underline and linethrough', function () {
var
body
=
editor
.
body
;
ua
.
manualDeleteFillData
(
editor
.
body
);
range
.
selectNode
(
body
.
firstChild
.
firstChild
.
nextSibling
).
select
();
equal
(
editor
.
queryCommandValue
(
'
underline
'
),
'
underline
'
,
'
query command value is underline
'
);
equal
(
editor
.
queryCommandValue
(
'
strikethrough
'
),
'
underline
'
,
'
query command value is not strik
e
'
);
ok
(
/underline/
.
test
(
editor
.
queryCommandValue
(
'
underline
'
))
,
'
query command value is underline
'
);
ok
(
/underline/
.
test
(
editor
.
queryCommandValue
(
'
strikethrough
'
)),
'
query command value is underlin
e
'
);
ok
(
editor
.
queryCommandState
(
'
underline
'
),
'
query underline state
'
);
editor
.
execCommand
(
'
strikethrough
'
);
var
html
=
'
hello<a href="http://www.baidu.com/" _href=
\
"http://www.baidu.com/
\
" style="text-decoration: line-through" >baidu</a>test
'
;
...
...
_test/plugins/keystrokes.js
浏览文件 @
8936e47d
...
...
@@ -7,7 +7,7 @@
*/
module
(
"
plugins.keystrokes
"
);
test
(
'
active
trace 3714跨节点输入tab键
'
,
function
(){
test
(
'
trace 3714跨节点输入tab键
'
,
function
(){
var
editor
=
te
.
obj
[
0
];
editor
.
setContent
(
'
<h1>hello<br></h1><p>he<img src="http://img.baidu.com/hi/jx2/j_0015.gif" />oll</p>
'
);
var
range
=
te
.
obj
[
1
];
...
...
@@ -16,8 +16,8 @@ test('active trace 3714跨节点输入tab键',function(){
ua
.
keydown
(
editor
.
body
,{
'
keyCode
'
:
9
});
ua
.
keyup
(
editor
.
body
,{
'
keyCode
'
:
9
});
setTimeout
(
function
(){
equal
(
te
.
obj
[
0
].
undoManger
.
list
.
length
,
2
,
''
);
var
html
=
'
<h1>hello<br></h1><p>
he<img src=
\
"http://img.baidu.com/hi/jx2/j_0015.gif
\
" _src=
\
"http://img.baidu.com/hi/jx2/j_0015.gif
\
">
oll</p>
'
;
equal
(
te
.
obj
[
0
].
undoManger
.
list
.
length
,
1
,
''
);
var
html
=
'
<h1>hello<br></h1><p> oll</p>
'
;
equal
(
ua
.
getChildHTML
(
te
.
obj
[
0
].
body
),
html
,
'
跨节点输入tab键
'
);
start
();
},
20
);
...
...
_test/plugins/searchreplace.js
浏览文件 @
8936e47d
...
...
@@ -21,7 +21,7 @@ test('trace 3381:查找',function(){
//
///*trace 974,先替换再撤销再全部替换,则不会替换
//* ie下会出现的bug*/
test
(
'
active
trace 3697全部替换
'
,
function
(){
test
(
'
trace 3697全部替换
'
,
function
(){
//todo trace 3697
if
(
ua
.
browser
.
opera
)
return
;
...
...
@@ -52,7 +52,7 @@ test('active trace 3697全部替换',function(){
//});
/*trace 973*/
test
(
'
active
trace 3697替换内容包含查找内容
'
,
function
(){
test
(
'
trace 3697替换内容包含查找内容
'
,
function
(){
if
(
ua
.
browser
.
opera
)
return
;
var
editor
=
te
.
obj
[
0
];
...
...
_test/plugins/source.js
浏览文件 @
8936e47d
...
...
@@ -145,7 +145,7 @@ test('b,i标签,切换源码后自动转换成strong和em', function () {
equal
(
editor
.
getContent
(),
'
<p><strong>加粗的内容</strong><em>斜体的内容<strong>加粗且斜体</strong></em></p>
'
);
});
test
(
'
activ
trace 3739 trace 1734 range的更新/特殊符号的转换
'
,
function
()
{
test
(
'
trace 3739 trace 1734 range的更新/特殊符号的转换
'
,
function
()
{
var
editor
=
te
.
obj
[
0
];
editor
.
setContent
(
'
<p>"<></p>
'
);
setTimeout
(
function
()
{
...
...
@@ -164,7 +164,7 @@ test('activ trace 3739 trace 1734 range的更新/特殊符号的转换', functio
editor
.
execCommand
(
'
source
'
);
setTimeout
(
function
()
{
editor
.
execCommand
(
'
source
'
);
equal
(
editor
.
getContent
(),
"
<p>'<img src=
\"
http://nsclick.baidu.com/u.gif?&asdf=
"
sdf&asdfasdfs;asdf
\"
/></p>
"
);
equal
(
editor
.
getContent
(),
"
<p>'<img src=
\"
http://nsclick.baidu.com/u.gif?&asdf=
%22
sdf&asdfasdfs;asdf
\"
/></p>
"
);
start
();
},
100
);
},
100
);
...
...
_test/plugins/table.action.js
浏览文件 @
8936e47d
...
...
@@ -182,7 +182,7 @@ test('从外面粘贴表格到表格-表格中不能粘完整的表格', functio
start
();
},
50
);
});
test
(
'
active ie9
trace 3729 从外面粘贴表格到表格-在caption中粘贴,只粘贴文本内容
'
,
function
()
{
test
(
'
trace 3729 从外面粘贴表格到表格-在caption中粘贴,只粘贴文本内容
'
,
function
()
{
var
editor
=
te
.
obj
[
0
];
var
range
=
te
.
obj
[
1
];
editor
.
setContent
(
''
);
...
...
_test/plugins/table.cmds.js
浏览文件 @
8936e47d
...
...
@@ -985,7 +985,7 @@ test('trace 3195:合并单元格后删除列再撤销', function () {
});
/*trace 3231*/
test
(
'
active
trace 3779 trace 3231:向右合并--拆分成列
'
,
function
()
{
test
(
'
trace 3779 trace 3231:向右合并--拆分成列
'
,
function
()
{
if
(
ua
.
browser
.
ie
&&
ua
.
browser
.
ie
>
8
)
return
;
//todo
var
editor
=
te
.
obj
[
0
];
var
range
=
te
.
obj
[
1
];
...
...
_test/plugins/table.core.js
浏览文件 @
8936e47d
...
...
@@ -50,6 +50,7 @@ test("getMaxCols", function () {
});
test
(
"
ie9 active trace 3728 getSameEndPosCells
"
,
function
()
{
if
(
ua
.
browser
.
ie
==
9
)
return
;
var
table
=
getTable
(
"
<tr><td rowspan='2'>1</td><td>2</td><td>3</td></tr><tr><td>2</td><td>3</td></tr>
"
),
ut
=
new
UT
(
table
);
var
cell
=
table
.
rows
[
0
].
cells
[
0
],
...
...
_test/plugins/table.sort.js
浏览文件 @
8936e47d
...
...
@@ -11,7 +11,7 @@ function getTable(str) {
return
div
.
firstChild
;
}
UT
=
UE
.
UETable
;
test
(
"
active
trace 3715 sortTable
"
,
function
()
{
test
(
"
trace 3715 sortTable
"
,
function
()
{
var
table
=
getTable
(
"
<tr><td>01</td><td>2</td><td>3</td><td>4</td><td>6</td><td>7</td></tr>
"
+
"
<tr><td>11</td><td>2</td><td>3</td><td>4</td><td>6</td><td>7</td></tr>
"
+
"
<tr><td>21</td><td>2</td><td>3</td><td>4</td><td>6</td><td>7</td></tr>
"
),
...
...
_test/plugins/wordcount.js
浏览文件 @
8936e47d
...
...
@@ -25,7 +25,7 @@ test('空格', function () {
equal
(
editor
.
getContentLength
(
true
),
22
,
'
清空后编辑器中22个空格
'
);
});
test
(
'
active
trace 3744 超出最大
'
,
function
()
{
test
(
'
trace 3744 超出最大
'
,
function
()
{
var
div
=
document
.
body
.
appendChild
(
document
.
createElement
(
'
div
'
));
div
.
id
=
'
ue
'
;
...
...
_test/tools/br/config.php
浏览文件 @
8936e47d
...
...
@@ -3,18 +3,21 @@
{
public
static
$BROWSERS
=
array
(
'ie8supp'
=>
array
(
'10.81.58.64@8500'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
'ie9main'
=>
array
(
'10.81.96.46'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
'firefox'
=>
array
(
'10.81.58.86@8500'
,
"C:
\\
Program Files
\\
mozilla firefox
\\
firefox.exe"
)
// 'firefox' => array( '10.81.96.46@8500' , "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" )
// , '360ie8' => array('10.81.58.64@8500',"C:\\Program Files\\360\\360se\\360SE.exe")
// , '360ie7' => array( '10.81.58.87@8500' , "C:\\Program Files\\360\\360se\\360SE.exe" )
,
'ie9'
=>
array
(
'10.81.96.46'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
// , 'ie6' => array( '10.81.58.86@8500' , "C:\\Program Files\\Internet Explorer\\iexplore.exe" )
,
'chrome'
=>
array
(
'10.81.58.63@8500'
,
"C:
\\
Documents and Settings
\\
geqa1
\\
Local Settings
\\
Application Data
\\
Google
\\
Chrome
\\
Application
\\
chrome.exe"
)
,
'ie8main'
=>
array
(
'10.81.58.64@8500'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
,
'ie9supp'
=>
array
(
'10.81.96.46'
,
"C:
\\
Program Files
\\
Internet Explorer
\\
iexplore.exe"
)
// , 'ie7' => array( '10.81.58.87@8500' , "C:\\Program Files\\Internet Explorer\\iexplore.exe" )
// , 'opera' => array( '10.81.58.64@8500' , "C:\\Program Files\\Opera\\opera.exe" )
// , 'safari' => array( '10.81.58.63@8500' , "C:\\Program Files\\Safari\\Safari.exe" )
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录