Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
function test() {
waitForExplicitFinish();
let uniqueValue =
Math.random() + "\u2028Second line\u2029Second paragraph\u2027";
let tab = BrowserTestUtils.addTab(gBrowser);
promiseBrowserLoaded(tab.linkedBrowser).then(() => {
let tabState = JSON.parse(ss.getTabState(tab));
is(
tabState.extData.bug485563,
uniqueValue,
"unicode line separator wasn't over-encoded"
);
ss.setTabState(tab, JSON.stringify(tabState));
is(
uniqueValue,
"unicode line separator was correctly preserved"
);
gBrowser.removeTab(tab);
finish();
});
}