зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1133175 - Remove SVGTests.hasExtension. r=bz,longsonr
This commit is contained in:
Родитель
b9da45f63c
Коммит
d4d63edb8f
|
@ -96,6 +96,7 @@ class SVGTests : public nsISupports {
|
|||
already_AddRefed<DOMSVGStringList> RequiredFeatures();
|
||||
already_AddRefed<DOMSVGStringList> RequiredExtensions();
|
||||
already_AddRefed<DOMSVGStringList> SystemLanguage();
|
||||
|
||||
bool HasExtension(const nsAString& aExtension) const;
|
||||
|
||||
virtual SVGElement* AsSVGElement() = 0;
|
||||
|
|
|
@ -16,7 +16,5 @@ interface SVGTests {
|
|||
readonly attribute SVGStringList requiredFeatures;
|
||||
readonly attribute SVGStringList requiredExtensions;
|
||||
readonly attribute SVGStringList systemLanguage;
|
||||
|
||||
boolean hasExtension(DOMString extension);
|
||||
};
|
||||
|
||||
|
|
|
@ -42,9 +42,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=744830
|
|||
|
||||
ok(chromeBR.height > contentBR.height, "Chrome content height should be bigger than content due to layout");
|
||||
|
||||
ok(!iframeEl.contentDocument.getElementById('svgel').hasExtension("http://www.w3.org/1998/Math/MathML"), 'SVG namespace support is disabled in content iframe');
|
||||
ok(chromeIframeEl.contentDocument.getElementById('svgel').hasExtension("http://www.w3.org/1998/Math/MathML"), 'SVG namespace support is enabled in chrome iframe');
|
||||
|
||||
SpecialPowers.setBoolPref("mathml.disabled", initialPrefValue);
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -38,9 +38,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=744830
|
|||
const contentBR = iframeEl.contentDocument.body.getBoundingClientRect();
|
||||
ok(chromeBR.height > contentBR.height, "Chrome content height should be bigger than content due to layout");
|
||||
|
||||
ok(!("hasExtension" in iframeEl.contentDocument.getElementById('svgel')), 'SVG is disabled so no hasExtension support is available in content iframe');
|
||||
ok(chromeIframeEl.contentDocument.getElementById('svgel').hasExtension("http://www.w3.org/1998/Math/MathML"), 'SVG namespace support is enabled in chrome iframe');
|
||||
|
||||
url = "http://mochi.test:8888/chrome/layout/svg/tests/svg_example_script.svg";
|
||||
const iframeElScript = document.createElement("iframe");
|
||||
let loadPromiseScript = ContentTaskUtils.waitForEvent(iframeElScript, "load", false);
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[required-extensions-1.html]
|
||||
[Testing foreignObject.hasExtension('http://www.w3.org/1998/Math/MathML')]
|
||||
expected: FAIL
|
||||
|
|
@ -8,9 +8,6 @@
|
|||
[SVGGraphicsElement.prototype.getTransformToElement must be removed]
|
||||
expected: FAIL
|
||||
|
||||
[SVGGraphicsElement.prototype.hasExtension must be removed]
|
||||
expected: FAIL
|
||||
|
||||
[SVGGraphicsElement.prototype.requiredFeatures must be removed]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче