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
105 changed files
with
3,063 additions
and
2,583 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
browser/base/content/test/tabs/browser_tab_label_during_reload.js
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,30 @@ | ||
/* Any copyright is dedicated to the Public Domain. | ||
* http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
add_task(async function() { | ||
let tab = gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, "about:preferences"); | ||
let browser = tab.linkedBrowser; | ||
let labelChanges = 0; | ||
let attrModifiedListener = event => { | ||
if (event.detail.changed.includes("label")) { | ||
labelChanges++; | ||
} | ||
}; | ||
tab.addEventListener("TabAttrModified", attrModifiedListener); | ||
|
||
await BrowserTestUtils.browserLoaded(browser); | ||
is(labelChanges, 1, "number of label changes during initial load"); | ||
isnot(tab.label, "", "about:preferences tab label isn't empty"); | ||
isnot(tab.label, "about:preferences", "about:preferences tab label isn't the URI"); | ||
is(tab.label, browser.contentTitle, "about:preferences tab label matches browser.contentTitle"); | ||
|
||
labelChanges = 0; | ||
browser.reload(); | ||
await BrowserTestUtils.browserLoaded(browser); | ||
is(labelChanges, 0, "number of label changes during reload"); | ||
|
||
tab.removeEventListener("TabAttrModified", attrModifiedListener); | ||
gBrowser.removeTab(tab); | ||
}); |
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
36 changes: 36 additions & 0 deletions
36
...nspector/flexbox/test/browser_flexbox_item_outline_rotates_for_different_writing_modes.js
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,36 @@ | ||
/* vim: set ts=2 et sw=2 tw=80: */ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
// Test that the flex item outline is rotated to match its main axis direction. | ||
|
||
const TEST_URI = URL_ROOT + "doc_flexbox_writing_modes.html"; | ||
|
||
add_task(async function() { | ||
await addTab(TEST_URI); | ||
const { inspector, flexboxInspector } = await openLayoutView(); | ||
const { document: doc } = flexboxInspector; | ||
|
||
info("Check that a vertical row flex item rotates to vertical-tb."); | ||
let onFlexItemOutlineRendered = waitForDOM(doc, | ||
".flex-outline-container .flex-outline"); | ||
await selectNode(".row.vertical.item", inspector); | ||
let [flexOutline] = await onFlexItemOutlineRendered; | ||
|
||
ok(flexOutline.classList.contains("vertical-tb"), | ||
"Horizontal item outline orientation has been rotated to vertical-tb."); | ||
|
||
info("Check that a vertical-rl column flex item rotates to horizontal-rl."); | ||
onFlexItemOutlineRendered = waitForDOM(doc, | ||
".flex-outline-container .flex-outline"); | ||
await selectNode(".column.vertical.item", inspector); | ||
await waitUntil(() => { | ||
flexOutline = | ||
doc.querySelector(".flex-outline-container .flex-outline.horizontal-rl"); | ||
return flexOutline; | ||
}); | ||
|
||
ok(true, "Vertical-rl item outline orientation has been rotated to horizontal-rl."); | ||
}); |
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
46 changes: 46 additions & 0 deletions
46
devtools/client/inspector/rules/test/browser_rules_edit-property_10.js
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,46 @@ | ||
/* vim: set ts=2 et sw=2 tw=80: */ | ||
/* Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ */ | ||
|
||
"use strict"; | ||
|
||
// Test that CSS property names are case insensitive when validating. | ||
|
||
const TEST_URI = ` | ||
<style type='text/css'> | ||
div { | ||
color: red; | ||
} | ||
</style> | ||
<div></div> | ||
`; | ||
|
||
add_task(async function() { | ||
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI)); | ||
const { inspector, view: ruleView } = await openRuleView(); | ||
|
||
await selectNode("div", inspector); | ||
const rule = getRuleViewRuleEditor(ruleView, 1).rule; | ||
const prop = rule.textProps[0]; | ||
let onRuleViewChanged; | ||
|
||
info(`Rename the CSS property name to "Color"`); | ||
onRuleViewChanged = ruleView.once("ruleview-changed"); | ||
await renameProperty(ruleView, prop, "Color"); | ||
info("Wait for Rule view to update"); | ||
await onRuleViewChanged; | ||
|
||
is(prop.overridden, false, "Titlecase property is not overriden"); | ||
is(prop.enabled, true, "Titlecase property is enabled"); | ||
is(prop.isNameValid(), true, "Titlecase property is valid"); | ||
|
||
info(`Rename the CSS property name to "COLOR"`); | ||
onRuleViewChanged = ruleView.once("ruleview-changed"); | ||
await renameProperty(ruleView, prop, "COLOR"); | ||
info("Wait for Rule view to update"); | ||
await onRuleViewChanged; | ||
|
||
is(prop.overridden, false, "Uppercase property is not overriden"); | ||
is(prop.enabled, true, "Uppercase property is enabled"); | ||
is(prop.isNameValid(), true, "Uppercase property is valid"); | ||
}); |
Oops, something went wrong.