Bug 1133175 - Remove SVGTests.hasExtension. r=bz,longsonr

This commit is contained in:
Cameron McCormack 2019-05-09 14:39:28 +10:00
Родитель b9da45f63c
Коммит d4d63edb8f
6 изменённых файлов: 5 добавлений и 11 удалений

Просмотреть файл

@ -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