зеркало из https://github.com/mozilla/gecko-dev.git
Bug 644206 - attributes/test_text.html should be loaded as UTF-8, r=surkov
This commit is contained in:
Родитель
1439913c4c
Коммит
bbd0901d10
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Text attributes tests</title>
|
<title>Text attributes tests</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||||
|
|
||||||
<script type="application/javascript"
|
<script type="application/javascript"
|
||||||
|
@ -190,43 +191,43 @@
|
||||||
testDefaultTextAttrs(ID, defAttrs);
|
testDefaultTextAttrs(ID, defAttrs);
|
||||||
|
|
||||||
attrs = {"language": "ru"};
|
attrs = {"language": "ru"};
|
||||||
testTextAttrs(ID, 0, attrs, defAttrs, 0, 12);
|
testTextAttrs(ID, 0, attrs, defAttrs, 0, 6);
|
||||||
|
|
||||||
attrs = {};
|
attrs = {};
|
||||||
testTextAttrs(ID, 12, attrs, defAttrs, 12, 13);
|
testTextAttrs(ID, 6, attrs, defAttrs, 6, 7);
|
||||||
|
|
||||||
tempElem = getNode(ID).firstChild.nextSibling.nextSibling.nextSibling;
|
tempElem = getNode(ID).firstChild.nextSibling.nextSibling.nextSibling;
|
||||||
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
||||||
attrs = { "background-color": gComputedStyle.backgroundColor};
|
attrs = { "background-color": gComputedStyle.backgroundColor};
|
||||||
testTextAttrs(ID, 13, attrs, defAttrs, 13, 26);
|
testTextAttrs(ID, 13, attrs, defAttrs, 7, 20);
|
||||||
|
|
||||||
attrs = {};
|
attrs = {};
|
||||||
testTextAttrs(ID, 26, attrs, defAttrs, 26, 27);
|
testTextAttrs(ID, 20, attrs, defAttrs, 20, 21);
|
||||||
|
|
||||||
attrs = {"language": "de"};
|
attrs = {"language": "de"};
|
||||||
testTextAttrs(ID, 27, attrs, defAttrs, 27, 42);
|
testTextAttrs(ID, 21, attrs, defAttrs, 21, 36);
|
||||||
|
|
||||||
attrs = {};
|
attrs = {};
|
||||||
testTextAttrs(ID, 42, attrs, defAttrs, 42, 50);
|
testTextAttrs(ID, 36, attrs, defAttrs, 36, 44);
|
||||||
|
|
||||||
attrs = {};
|
attrs = {};
|
||||||
testTextAttrs(ID, 43, attrs, defAttrs, 42, 50);
|
testTextAttrs(ID, 37, attrs, defAttrs, 36, 44);
|
||||||
|
|
||||||
tempElem = tempElem.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nextSibling;
|
tempElem = tempElem.nextSibling.nextSibling.nextSibling.nextSibling.firstChild.nextSibling;
|
||||||
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
||||||
attrs = {"color": gComputedStyle.color};
|
attrs = {"color": gComputedStyle.color};
|
||||||
testTextAttrs(ID, 50, attrs, defAttrs, 50, 57);
|
testTextAttrs(ID, 44, attrs, defAttrs, 44, 51);
|
||||||
|
|
||||||
tempElem = tempElem.firstChild.nextSibling;
|
tempElem = tempElem.firstChild.nextSibling;
|
||||||
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
||||||
attrs = {"font-weight": kBoldFontWeight,
|
attrs = {"font-weight": kBoldFontWeight,
|
||||||
"color": gComputedStyle.color};
|
"color": gComputedStyle.color};
|
||||||
testTextAttrs(ID, 57, attrs, defAttrs, 57, 61);
|
testTextAttrs(ID, 51, attrs, defAttrs, 51, 55);
|
||||||
|
|
||||||
tempElem = tempElem.parentNode;
|
tempElem = tempElem.parentNode;
|
||||||
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
gComputedStyle = document.defaultView.getComputedStyle(tempElem, "");
|
||||||
attrs = {"color": gComputedStyle.color};
|
attrs = {"color": gComputedStyle.color};
|
||||||
testTextAttrs(ID, 61, attrs, defAttrs, 61, 68);
|
testTextAttrs(ID, 55, attrs, defAttrs, 55, 62);
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// area9, different single style spans in styled paragraph
|
// area9, different single style spans in styled paragraph
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>nsIAccessibleText getText related function tests for html:input,html:div and html:textarea</title>
|
<title>nsIAccessibleText getText related function tests for html:input,html:div and html:textarea</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||||
|
|
||||||
<script type="application/javascript"
|
<script type="application/javascript"
|
||||||
|
@ -65,7 +66,7 @@
|
||||||
testWords("div12", ["4,261.01"], kTodo);
|
testWords("div12", ["4,261.01"], kTodo);
|
||||||
|
|
||||||
// "カタカナ"
|
// "カタカナ"
|
||||||
testWords("div13", ["カタカナ"], kTodo);
|
testWords("div13", ["カタカナ"], kOk);
|
||||||
|
|
||||||
// "Peter's car"
|
// "Peter's car"
|
||||||
testWords("div14", ["Peter's", "car"], kTodo);
|
testWords("div14", ["Peter's", "car"], kTodo);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче