Unverified Commit 8aad9d82 authored by boklm's avatar boklm
Browse files

Add an acid3 test

parent 79d4b064
......@@ -200,6 +200,12 @@ our @tests = (
type => 'mozmill',
descr => 'Check that some important settings are correctly set',
},
{
{
name => 'acid3',
type => 'mozmill',
descr => 'acid3 tests',
},
{
name => 'slider_settings_1',
mozmill_test => 'slider_settings',
......
"use strict";
var {expect} = require("../mozilla-mozmill-tests/lib/assertions");
var screenshot = require("../lib/screenshot");
var setupModule = function(aModule) {
aModule.controller = mozmill.getBrowserController();
}
var testAcid3 = function() {
var acid_page = 'http://acid3.acidtests.org/';
controller.open(acid_page);
controller.waitForPageLoad();
controller.sleep(4000);
var result = new elementslib.ID(controller.window.document, "score");
result.waitForElement(5000, 100);
controller.waitFor(
function() {
var result = new elementslib.ID(controller.window.document, "score");
var result_text = result.getNode().innerHTML;
return result_text == "100";
},
"acid3 100", 50000, 100);
screenshot.create(controller, []);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment