forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
1,834 additions
and
3,083 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function test() { | ||
var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/"; | ||
runCharsetTest(rootDir + "file_bug1543077-1.html", afterOpen, "Japanese", afterChangeCharset); | ||
} | ||
|
||
function afterOpen() { | ||
is(content.document.documentElement.textContent.indexOf("\u00A4"), 131, "Parent doc should be windows-1252 initially"); | ||
|
||
is(content.frames[0].document.documentElement.textContent.indexOf("\u00A4"), 87, "Child doc should be windows-1252 initially"); | ||
} | ||
|
||
function afterChangeCharset() { | ||
is(content.document.documentElement.textContent.indexOf("\u3042"), 131, "Parent doc should decode as EUC-JP subsequently"); | ||
is(content.frames[0].document.documentElement.textContent.indexOf("\u3042"), 87, "Child doc should decode as EUC-JP subsequently"); | ||
|
||
is(content.document.characterSet, "EUC-JP", "Parent doc should report EUC-JP subsequently"); | ||
is(content.frames[0].document.characterSet, "EUC-JP", "Child doc should report EUC-JP subsequently"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function test() { | ||
var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/"; | ||
runCharsetTest(rootDir + "file_bug1543077-2.html", afterOpen, "Japanese", afterChangeCharset); | ||
} | ||
|
||
function afterOpen() { | ||
is(content.document.documentElement.textContent.indexOf("\u201A"), 134, "Parent doc should be windows-1252 initially"); | ||
|
||
is(content.frames[0].document.documentElement.textContent.indexOf("\u201A"), 90, "Child doc should be windows-1252 initially"); | ||
} | ||
|
||
function afterChangeCharset() { | ||
is(content.document.documentElement.textContent.indexOf("\u3042"), 134, "Parent doc should decode as Shift_JIS subsequently"); | ||
is(content.frames[0].document.documentElement.textContent.indexOf("\u3042"), 90, "Child doc should decode as Shift_JIS subsequently"); | ||
|
||
is(content.document.characterSet, "Shift_JIS", "Parent doc should report Shift_JIS subsequently"); | ||
is(content.frames[0].document.characterSet, "Shift_JIS", "Child doc should report Shift_JIS subsequently"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function test() { | ||
var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/"; | ||
runCharsetTest(rootDir + "file_bug1543077-3.html", afterOpen, "Japanese", afterChangeCharset); | ||
} | ||
|
||
function afterOpen() { | ||
is(content.document.documentElement.textContent.indexOf("\u001B"), 136, "Parent doc should be windows-1252 initially"); | ||
|
||
is(content.frames[0].document.documentElement.textContent.indexOf("\u001B"), 92, "Child doc should be windows-1252 initially"); | ||
} | ||
|
||
function afterChangeCharset() { | ||
is(content.document.documentElement.textContent.indexOf("\u3042"), 136, "Parent doc should decode as ISO-2022-JP subsequently"); | ||
is(content.frames[0].document.documentElement.textContent.indexOf("\u3042"), 92, "Child doc should decode as ISO-2022-JP subsequently"); | ||
|
||
is(content.document.characterSet, "ISO-2022-JP", "Parent doc should report ISO-2022-JP subsequently"); | ||
is(content.frames[0].document.characterSet, "ISO-2022-JP", "Child doc should report ISO-2022-JP subsequently"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function test() { | ||
var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/"; | ||
runCharsetTest(rootDir + "file_bug1543077-4.html", afterOpen, "Japanese", afterChangeCharset); | ||
} | ||
|
||
function afterOpen() { | ||
is(content.document.documentElement.textContent.indexOf("\u00A4"), 131, "Parent doc should be windows-1252 initially"); | ||
|
||
is(content.frames[0].document.documentElement.textContent.indexOf("\u201A"), 90, "Child doc should be windows-1252 initially"); | ||
} | ||
|
||
function afterChangeCharset() { | ||
is(content.document.documentElement.textContent.indexOf("\u3042"), 131, "Parent doc should decode as EUC-JP subsequently"); | ||
is(content.frames[0].document.documentElement.textContent.indexOf("\u3042"), 90, "Child doc should decode as Shift_JIS subsequently"); | ||
|
||
is(content.document.characterSet, "EUC-JP", "Parent doc should report EUC-JP subsequently"); | ||
is(content.frames[0].document.characterSet, "Shift_JIS", "Child doc should report Shift_JIS subsequently"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<p>Hiragana letter a if decoded as EUC-JP: ¤¢</p> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<h1>No encoding declaration in parent or child</h1> | ||
|
||
<p>Hiragana letter a if decoded as EUC-JP: ¤¢</p> | ||
|
||
<iframe src="file_bug1543077-1-child.html"></iframe> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<p>Hiragana letter a if decoded as Shift_JIS: ‚ </p> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<h1>No encoding declaration in parent or child</h1> | ||
|
||
<p>Hiragana letter a if decoded as Shift_JIS: ‚ </p> | ||
|
||
<iframe src="file_bug1543077-2-child.html"></iframe> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<p>Hiragana letter a if decoded as ISO-2022-JP: $B$"(B</p> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<h1>No encoding declaration in parent or child</h1> | ||
|
||
<p>Hiragana letter a if decoded as ISO-2022-JP: $B$"(B</p> | ||
|
||
<iframe src="file_bug1543077-3-child.html"></iframe> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<title>No encoding declaration in parent or child</title> | ||
</head> | ||
<body> | ||
<p>Hiragana letter a if decoded as Shift_JIS: ‚ </p> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.