mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1319936 - Remove String generics uses in dom. r=billm
--HG-- extra : rebase_source : f2b40e5d4a423035d2de8739570a76305a058cf0
This commit is contained in:
parent
75e7c1e895
commit
8843a98210
@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=742156
|
||||
|
||||
/** Test for Bug 742156 **/
|
||||
|
||||
var nativeToString = ("" + String.replace).replace("replace", "EventTarget");
|
||||
var nativeToString = ("" + String).replace("String", "EventTarget");
|
||||
try {
|
||||
var eventTargetToString = "" + EventTarget;
|
||||
is(eventTargetToString, nativeToString,
|
||||
|
@ -182,7 +182,7 @@ function testStreamingOptions()
|
||||
}
|
||||
|
||||
function arrayFromString(s) {
|
||||
return s.split('').map(function(c){return String.charCodeAt(c)});
|
||||
return s.split('').map(function(c){return c.charCodeAt(0)});
|
||||
}
|
||||
|
||||
function testArrayOfStrings(test)
|
||||
|
@ -673,7 +673,7 @@ function runTest() {
|
||||
reqHeaders =
|
||||
escape(Object.keys(test.headers)
|
||||
.filter(isUnsafeHeader)
|
||||
.map(String.toLowerCase)
|
||||
.map(s => s.toLowerCase())
|
||||
.sort()
|
||||
.join(","));
|
||||
req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";
|
||||
|
@ -759,7 +759,7 @@ function testModeCors() {
|
||||
reqHeaders =
|
||||
escape(Object.keys(test.headers)
|
||||
.filter(isUnsafeHeader)
|
||||
.map(String.toLowerCase)
|
||||
.map(s => s.toLowerCase())
|
||||
.sort()
|
||||
.join(","));
|
||||
req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";
|
||||
|
Loading…
Reference in New Issue
Block a user