summaryrefslogtreecommitdiffstats
path: root/layout/style/test/test_pseudoelement_state.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/test/test_pseudoelement_state.html')
-rw-r--r--layout/style/test/test_pseudoelement_state.html30
1 files changed, 11 insertions, 19 deletions
diff --git a/layout/style/test/test_pseudoelement_state.html b/layout/style/test/test_pseudoelement_state.html
index ad4bf5242..bdc4dc8f2 100644
--- a/layout/style/test/test_pseudoelement_state.html
+++ b/layout/style/test/test_pseudoelement_state.html
@@ -8,8 +8,6 @@
<iframe src="data:text/html,<!DOCTYPE html><style></style><div></div>"></iframe>
<script>
-var gIsAndroid = navigator.appVersion.indexOf("Android") != -1;
-
var gTests = [
// Interact with the ::-moz-progress-bar.
{ markup: '<progress value="75" max="100"></progress>',
@@ -124,29 +122,23 @@ function runTests() {
is(countPixelDifferences(canvas1, canvas2), 0, "hover subtest #" + aIndex + ", number of different pixels");
is(getComputedStyle(div.firstChild, test.pseudoelement).backgroundColor, "rgb(0, 128, 0)", "hover subtest #" + aIndex + ", computed style");
- if (!gIsAndroid) {
- style.textContent = test.common_style + test.active_test_style;
- synthesizeMouseAtCenter(div.lastChild, { type: 'mousedown' }, iframe.contentWindow);
- }
+ style.textContent = test.common_style + test.active_test_style;
+ synthesizeMouseAtCenter(div.lastChild, { type: 'mousedown' }, iframe.contentWindow);
}
function runTestPart4(aIndex) {
- if (!gIsAndroid) {
- var test = gTests[aIndex];
- canvas1 = SpecialPowers.snapshotWindow(iframe.contentWindow, false);
- synthesizeMouseAtCenter(div.lastChild, { type: 'mouseup' }, iframe.contentWindow);
- style.textContent = test.common_style + test.active_reference_style;
- }
+ var test = gTests[aIndex];
+ canvas1 = SpecialPowers.snapshotWindow(iframe.contentWindow, false);
+ synthesizeMouseAtCenter(div.lastChild, { type: 'mouseup' }, iframe.contentWindow);
+ style.textContent = test.common_style + test.active_reference_style;
}
function runTestPart5(aIndex) {
- if (!gIsAndroid) {
- var test = gTests[aIndex];
- canvas2 = SpecialPowers.snapshotWindow(iframe.contentWindow, false);
- ok(canvas1.width == canvas2.width && canvas1.height == canvas2.height, "active subtest #" + aIndex + ", canvas sizes equal");
- is(countPixelDifferences(canvas1, canvas2), 0, "active subtest #" + aIndex + ", number of different pixels");
- is(getComputedStyle(div.firstChild, test.pseudoelement).backgroundColor, "rgb(0, 255, 0)", "active subtest #" + aIndex + ", computed style");
- }
+ var test = gTests[aIndex];
+ canvas2 = SpecialPowers.snapshotWindow(iframe.contentWindow, false);
+ ok(canvas1.width == canvas2.width && canvas1.height == canvas2.height, "active subtest #" + aIndex + ", canvas sizes equal");
+ is(countPixelDifferences(canvas1, canvas2), 0, "active subtest #" + aIndex + ", number of different pixels");
+ is(getComputedStyle(div.firstChild, test.pseudoelement).backgroundColor, "rgb(0, 255, 0)", "active subtest #" + aIndex + ", computed style");
}
for (var i = 0; i < gTests.length; i++) {