https://bugs.webkit.org/show_bug.cgi?id=88969
Reviewed by Darin Adler.
* http/tests/appcache/:
* http/tests/cache/cancel-during-failure-crash.html:
* http/tests/cache/cancel-during-revalidation-succeeded.html:
* http/tests/cache/history-only-cached-subresource-loads-max-age-https.html:
* http/tests/cache/history-only-cached-subresource-loads.html:
* http/tests/cache/loaded-from-cache-after-reload-within-iframe.html:
* http/tests/cache/loaded-from-cache-after-reload.html:
* http/tests/cache/post-redirect-get.php:
* http/tests/cache/post-with-cached-subresources.php:
* http/tests/cache/resources/stopped-revalidation-result.html:
* http/tests/cache/resources/subresource-test.js:
(nextTest):
* http/tests/cache/stopped-revalidation.html:
* http/tests/cache/subresource-failover-to-network.html:
* http/tests/cache/subresource-fragment-identifier.html:
* http/tests/cache/subresource-multiple-instances.html:
* http/tests/cache/xhr-body.html:
* http/tests/cache/zero-length-xhr.html:
* http/tests/canvas/philip/tests.js:
(_addTest.endTest):
(_addTest.window.onload):
(_addTest):
* http/tests/canvas/webgl/origin-clean-conformance.html:
* http/tests/cookies/resources/cookies-test-pre.js:
* http/tests/cookies/resources/resetCookies.js:
(resetCookies):
* http/tests/cookies/resources/setArraycookies-result.php:
* http/tests/cookies/resources/setUtf8Cookies-result.php:
* http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html:
* http/tests/cookies/third-party-cookie-relaxing.html:
* http/tests/css/cross-fade-reload.html:
* http/tests/css/css-imports-redirect-cycle.html:
* http/tests/css/font-face-src-loading.html:
* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js:
* http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js:
* http/tests/css/resources/request-logging.js:
(startTest):
(endTest):
* http/tests/download/basic-ascii.html:
* http/tests/download/default-encoding.html:
* http/tests/download/inherited-encoding-form-submission-result.html:
* http/tests/download/inherited-encoding.html:
* http/tests/download/literal-utf-8.html:
* http/tests/eventsource/eventsource-bad-mime-type.html:
* http/tests/eventsource/eventsource-content-type-charset.html:
* http/tests/eventsource/eventsource-eof.html:
* http/tests/eventsource/eventsource-parse-event-stream.html:
* http/tests/eventsource/eventsource-reconnect-during-navigate-crash.html:
* http/tests/eventsource/eventsource-reconnect.html:
* http/tests/eventsource/eventsource-status-code-states.html:
* http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html:
* http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html:
* http/tests/eventsource/resources/wait-then-notify-done.php:
* http/tests/eventsource/workers/eventsource-simple.html:
* http/tests/fileapi/create-blob-url-from-data-url.html:
* http/tests/filesystem/no-cache-filesystem-url.html:
* http/tests/globalhistory/history-delegate-basic-302-redirect.html:
* http/tests/globalhistory/history-delegate-basic-refresh-redirect.html:
* http/tests/globalhistory/history-delegate-basic-title.html:
* http/tests/globalhistory/history-delegate-basic-visited-links.html:
* http/tests/history/:
* http/tests/incremental/frame-focus-before-load.html:
* http/tests/incremental/partial-jpeg.html:
* http/tests/incremental/pause-in-script-element.pl:
* http/tests/incremental/slow-utf8-css.html:
* http/tests/incremental/slow-utf8-html.pl:
* http/tests/incremental/split-hex-entities.pl:
* http/tests/inspector-enabled/console-clear-arguments-on-frame-navigation.html:
* http/tests/inspector-enabled/console-clear-arguments-on-frame-remove.html:
* http/tests/inspector-enabled/console-log-before-frame-navigation.html:
* http/tests/inspector-enabled/contentSecurityPolicy-blocks-setInterval.html:
* http/tests/inspector-enabled/contentSecurityPolicy-blocks-setTimeout.html:
* http/tests/inspector-enabled/database-open.html:
* http/tests/inspector-enabled/dedicated-workers-list.html:
* http/tests/inspector-enabled/document-write.html:
* http/tests/inspector-enabled/dom-storage-open.html:
* http/tests/inspector-enabled/injected-script-discard.html:
* http/tests/inspector-enabled/resources/console-clear-arguments-iframe.html:
* http/tests/inspector/console-resource-errors.html:
* http/tests/inspector/console-websocket-error.html:
* http/tests/inspector/indexeddb/resources/without-indexed-db.html:
* http/tests/inspector/inspector-test.js:
* http/tests/inspector/network/ping.html:
* http/tests/inspector/resource-tree/resources/script-initial.js:
(foo):
* http/tests/inspector/resource-tree/resources/script-navigated.js:
(foo):
* http/tests/inspector/web-socket-frame-error.html:
* http/tests/inspector/web-socket-frame.html:
* http/tests/loading/:
* http/tests/local/absolute-url-strip-whitespace.html:
* http/tests/local/blob/script-tests/send-hybrid-blob.js:
(runTests):
* http/tests/local/drag-over-remote-content.html:
* http/tests/local/fail.css:
(#pass):
* http/tests/local/formdata/send-form-data-constructed-from-form.html:
* http/tests/local/link-stylesheet-load-order-preload.html:
* http/tests/local/link-stylesheet-load-order.html:
* http/tests/local/link-stylesheet-preferred.html:
* http/tests/local/style-access-before-stylesheet-loaded.html:
* http/tests/local/stylesheet-and-script-load-order-http.html:
* http/tests/local/stylesheet-and-script-load-order-media-print.html:
* http/tests/local/stylesheet-and-script-load-order.html:
* http/tests/media/reload-after-dialog.html:
* http/tests/media/resources/test.txt:
* http/tests/media/video-buffered-range-contains-currentTime.html:
* http/tests/media/video-cancel-load.html:
* http/tests/media/video-cookie.html:
* http/tests/media/video-error-abort.html:
* http/tests/messaging/cross-domain-message-event-dispatch.html:
* http/tests/messaging/cross-domain-message-send.html:
* http/tests/mime/quoted-charset.php:
* http/tests/mime/resources/uppercase-mime-type.php:
* http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-and-css-extension.html:
* http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain.html:
* http/tests/mime/standard-mode-loads-stylesheet-with-charset-and-css-extension.html:
* http/tests/mime/standard-mode-loads-stylesheet-with-charset.html:
* http/tests/mime/standard-mode-loads-stylesheet-with-empty-content-type.html:
* http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type.html:
* http/tests/mime/uppercase-mime-type.html:
* http/tests/misc/:
* http/tests/websocket/tests/:
* http/tests/workers/resources/worker-redirect.js:
(runNextTest):
* http/tests/workers/resources/worker-util.js:
(waitUntilThreadCountMatches.return):
(waitUntilThreadCountMatches):
(done):
* http/tests/workers/shared-worker-importScripts.html:
* http/tests/workers/shared-worker-invalid-url.html:
* http/tests/workers/terminate-during-sync-operation.html:
* http/tests/workers/text-encoding.html:
* http/tests/workers/worker-document-domain-security.html:
* http/tests/workers/worker-importScripts.html:
* http/tests/workers/worker-importScriptsOnError.html:
* http/tests/workers/worker-invalid-url.html:
* http/tests/workers/worker-workerScriptNotThere.html:
* http/tests/xmlhttprequest/:
* http/tests/xmlviewer/dumpAsText/frames.html:
* http/tests/xmlviewer/dumpAsText/xhtml-tag.xml:
* http/tests/xmlviewer/extensions-api.html:
* platform/chromium-win/http/tests/websocket/tests/hixie76/bad-sub-protocol-control-chars-expected.txt:
* platform/chromium/http/tests/misc/execute-and-return-value.html:
* platform/chromium/http/tests/misc/selectionAsMarkup.html:
* platform/chromium/http/tests/permissionclient/image-permissions.html:
* platform/chromium/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
* platform/chromium/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
* platform/chromium/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-from-javascript-url-window-open-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt:
* platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open-expected.txt:
* platform/chromium/http/tests/security/mixedContent/insecure-iframe-in-main-frame-allowed.html:
* platform/chromium/http/tests/security/mixedContent/insecure-iframe-in-main-frame-blocked.html:
* platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html:
* platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html:
* platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html:
* platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html:
* platform/chromium/http/tests/security/window-named-proto-expected.txt:
* platform/qt/http/tests/cookies/strict-third-party-cookie-blocking.html:
* platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
* platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
* platform/qt/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@120167
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-06-12 Ryosuke Niwa <rniwa@webkit.org>
+
+ HTTP tests should use testRunner instead of layoutTestController
+ https://bugs.webkit.org/show_bug.cgi?id=88969
+
+ Reviewed by Darin Adler.
+
+ * http/tests/appcache/:
+ * http/tests/cache/cancel-during-failure-crash.html:
+ * http/tests/cache/cancel-during-revalidation-succeeded.html:
+ * http/tests/cache/history-only-cached-subresource-loads-max-age-https.html:
+ * http/tests/cache/history-only-cached-subresource-loads.html:
+ * http/tests/cache/loaded-from-cache-after-reload-within-iframe.html:
+ * http/tests/cache/loaded-from-cache-after-reload.html:
+ * http/tests/cache/post-redirect-get.php:
+ * http/tests/cache/post-with-cached-subresources.php:
+ * http/tests/cache/resources/stopped-revalidation-result.html:
+ * http/tests/cache/resources/subresource-test.js:
+ (nextTest):
+ * http/tests/cache/stopped-revalidation.html:
+ * http/tests/cache/subresource-failover-to-network.html:
+ * http/tests/cache/subresource-fragment-identifier.html:
+ * http/tests/cache/subresource-multiple-instances.html:
+ * http/tests/cache/xhr-body.html:
+ * http/tests/cache/zero-length-xhr.html:
+ * http/tests/canvas/philip/tests.js:
+ (_addTest.endTest):
+ (_addTest.window.onload):
+ (_addTest):
+ * http/tests/canvas/webgl/origin-clean-conformance.html:
+ * http/tests/cookies/resources/cookies-test-pre.js:
+ * http/tests/cookies/resources/resetCookies.js:
+ (resetCookies):
+ * http/tests/cookies/resources/setArraycookies-result.php:
+ * http/tests/cookies/resources/setUtf8Cookies-result.php:
+ * http/tests/cookies/resources/third-party-cookie-relaxing-iframe.html:
+ * http/tests/cookies/third-party-cookie-relaxing.html:
+ * http/tests/css/cross-fade-reload.html:
+ * http/tests/css/css-imports-redirect-cycle.html:
+ * http/tests/css/font-face-src-loading.html:
+ * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet-in-error.js:
+ * http/tests/css/resources/link-css-disabled-value-with-slow-loading-sheet.js:
+ * http/tests/css/resources/request-logging.js:
+ (startTest):
+ (endTest):
+ * http/tests/download/basic-ascii.html:
+ * http/tests/download/default-encoding.html:
+ * http/tests/download/inherited-encoding-form-submission-result.html:
+ * http/tests/download/inherited-encoding.html:
+ * http/tests/download/literal-utf-8.html:
+ * http/tests/eventsource/eventsource-bad-mime-type.html:
+ * http/tests/eventsource/eventsource-content-type-charset.html:
+ * http/tests/eventsource/eventsource-eof.html:
+ * http/tests/eventsource/eventsource-parse-event-stream.html:
+ * http/tests/eventsource/eventsource-reconnect-during-navigate-crash.html:
+ * http/tests/eventsource/eventsource-reconnect.html:
+ * http/tests/eventsource/eventsource-status-code-states.html:
+ * http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html:
+ * http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html:
+ * http/tests/eventsource/resources/wait-then-notify-done.php:
+ * http/tests/eventsource/workers/eventsource-simple.html:
+ * http/tests/fileapi/create-blob-url-from-data-url.html:
+ * http/tests/filesystem/no-cache-filesystem-url.html:
+ * http/tests/globalhistory/history-delegate-basic-302-redirect.html:
+ * http/tests/globalhistory/history-delegate-basic-refresh-redirect.html:
+ * http/tests/globalhistory/history-delegate-basic-title.html:
+ * http/tests/globalhistory/history-delegate-basic-visited-links.html:
+ * http/tests/history/:
+ * http/tests/incremental/frame-focus-before-load.html:
+ * http/tests/incremental/partial-jpeg.html:
+ * http/tests/incremental/pause-in-script-element.pl:
+ * http/tests/incremental/slow-utf8-css.html:
+ * http/tests/incremental/slow-utf8-html.pl:
+ * http/tests/incremental/split-hex-entities.pl:
+ * http/tests/inspector-enabled/console-clear-arguments-on-frame-navigation.html:
+ * http/tests/inspector-enabled/console-clear-arguments-on-frame-remove.html:
+ * http/tests/inspector-enabled/console-log-before-frame-navigation.html:
+ * http/tests/inspector-enabled/contentSecurityPolicy-blocks-setInterval.html:
+ * http/tests/inspector-enabled/contentSecurityPolicy-blocks-setTimeout.html:
+ * http/tests/inspector-enabled/database-open.html:
+ * http/tests/inspector-enabled/dedicated-workers-list.html:
+ * http/tests/inspector-enabled/document-write.html:
+ * http/tests/inspector-enabled/dom-storage-open.html:
+ * http/tests/inspector-enabled/injected-script-discard.html:
+ * http/tests/inspector-enabled/resources/console-clear-arguments-iframe.html:
+ * http/tests/inspector/console-resource-errors.html:
+ * http/tests/inspector/console-websocket-error.html:
+ * http/tests/inspector/indexeddb/resources/without-indexed-db.html:
+ * http/tests/inspector/inspector-test.js:
+ * http/tests/inspector/network/ping.html:
+ * http/tests/inspector/resource-tree/resources/script-initial.js:
+ (foo):
+ * http/tests/inspector/resource-tree/resources/script-navigated.js:
+ (foo):
+ * http/tests/inspector/web-socket-frame-error.html:
+ * http/tests/inspector/web-socket-frame.html:
+ * http/tests/loading/:
+ * http/tests/local/absolute-url-strip-whitespace.html:
+ * http/tests/local/blob/script-tests/send-hybrid-blob.js:
+ (runTests):
+ * http/tests/local/drag-over-remote-content.html:
+ * http/tests/local/fail.css:
+ (#pass):
+ * http/tests/local/formdata/send-form-data-constructed-from-form.html:
+ * http/tests/local/link-stylesheet-load-order-preload.html:
+ * http/tests/local/link-stylesheet-load-order.html:
+ * http/tests/local/link-stylesheet-preferred.html:
+ * http/tests/local/style-access-before-stylesheet-loaded.html:
+ * http/tests/local/stylesheet-and-script-load-order-http.html:
+ * http/tests/local/stylesheet-and-script-load-order-media-print.html:
+ * http/tests/local/stylesheet-and-script-load-order.html:
+ * http/tests/media/reload-after-dialog.html:
+ * http/tests/media/resources/test.txt:
+ * http/tests/media/video-buffered-range-contains-currentTime.html:
+ * http/tests/media/video-cancel-load.html:
+ * http/tests/media/video-cookie.html:
+ * http/tests/media/video-error-abort.html:
+ * http/tests/messaging/cross-domain-message-event-dispatch.html:
+ * http/tests/messaging/cross-domain-message-send.html:
+ * http/tests/mime/quoted-charset.php:
+ * http/tests/mime/resources/uppercase-mime-type.php:
+ * http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain-and-css-extension.html:
+ * http/tests/mime/standard-mode-does-not-load-stylesheet-with-text-plain.html:
+ * http/tests/mime/standard-mode-loads-stylesheet-with-charset-and-css-extension.html:
+ * http/tests/mime/standard-mode-loads-stylesheet-with-charset.html:
+ * http/tests/mime/standard-mode-loads-stylesheet-with-empty-content-type.html:
+ * http/tests/mime/standard-mode-loads-stylesheet-with-text-css-and-invalid-type.html:
+ * http/tests/mime/uppercase-mime-type.html:
+ * http/tests/misc/:
+ * http/tests/websocket/tests/:
+ * http/tests/workers/resources/worker-redirect.js:
+ (runNextTest):
+ * http/tests/workers/resources/worker-util.js:
+ (waitUntilThreadCountMatches.return):
+ (waitUntilThreadCountMatches):
+ (done):
+ * http/tests/workers/shared-worker-importScripts.html:
+ * http/tests/workers/shared-worker-invalid-url.html:
+ * http/tests/workers/terminate-during-sync-operation.html:
+ * http/tests/workers/text-encoding.html:
+ * http/tests/workers/worker-document-domain-security.html:
+ * http/tests/workers/worker-importScripts.html:
+ * http/tests/workers/worker-importScriptsOnError.html:
+ * http/tests/workers/worker-invalid-url.html:
+ * http/tests/workers/worker-workerScriptNotThere.html:
+ * http/tests/xmlhttprequest/:
+ * http/tests/xmlviewer/dumpAsText/frames.html:
+ * http/tests/xmlviewer/dumpAsText/xhtml-tag.xml:
+ * http/tests/xmlviewer/extensions-api.html:
+ * platform/chromium-win/http/tests/websocket/tests/hixie76/bad-sub-protocol-control-chars-expected.txt:
+ * platform/chromium/http/tests/misc/execute-and-return-value.html:
+ * platform/chromium/http/tests/misc/selectionAsMarkup.html:
+ * platform/chromium/http/tests/permissionclient/image-permissions.html:
+ * platform/chromium/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
+ * platform/chromium/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
+ * platform/chromium/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-subframe-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-in-foreign-domain-window-open-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-2-level-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-sub-frame-to-data-url-sub-frame-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-data-url-to-data-url-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-from-javascript-url-window-open-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-from-data-url-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-subframe-location-change-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-in-foreign-domain-window-open-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-2-level-expected.txt:
+ * platform/chromium/http/tests/security/dataURL/xss-DENIED-to-data-url-window-open-expected.txt:
+ * platform/chromium/http/tests/security/mixedContent/insecure-iframe-in-main-frame-allowed.html:
+ * platform/chromium/http/tests/security/mixedContent/insecure-iframe-in-main-frame-blocked.html:
+ * platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-allowed.html:
+ * platform/chromium/http/tests/security/mixedContent/insecure-image-in-main-frame-blocked.html:
+ * platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-allowed.html:
+ * platform/chromium/http/tests/security/mixedContent/insecure-script-in-main-frame-blocked.html:
+ * platform/chromium/http/tests/security/window-named-proto-expected.txt:
+ * platform/qt/http/tests/cookies/strict-third-party-cookie-blocking.html:
+ * platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write-expected.txt:
+ * platform/qt/http/tests/security/aboutBlank/xss-DENIED-navigate-opener-javascript-url-expected.txt:
+ * platform/qt/http/tests/security/aboutBlank/xss-DENIED-set-opener-expected.txt:
+
2012-06-11 Kinuko Yasuda <kinuko@chromium.org>
Unprefix Blob.webkitSlice
<html manifest="does-not-exist.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
log("FAILURE: Could not load data.");
}
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
var gotCheckingEvent = false;
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("FAILURE: cache status is not uncached: " + applicationCache.status);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { unexpectedCallback("cached"); cacheCallback() }, false);
<html manifest="resources/abort-cache-onchecking-manifest-404.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('checking', onchecking, false);
<html manifest="resources/abort-cache-onchecking-resource-404.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('checking', onchecking, false);
<html manifest="resources/abort-cache-onchecking.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('checking', onchecking, false);
<html manifest="resources/abort-cache-ondownloading-manifest-404.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('downloading', ondownloading, false);
<html manifest="resources/abort-cache-ondownloading-resource-404.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('downloading', ondownloading, false);
<html manifest="resources/abort-cache-ondownloading.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('downloading', ondownloading, false);
<html manifest="resources/abort-cache-onprogress.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message) {
function onnoupdate() {
log("FAILURE");
log("noupdate");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached() {
log("FAILURE");
log("CACHED");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onupdateready() {
log("FAILURE");
log("UPDATEREADY");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('noupdate', onnoupdate, false);
<body>
<p>Test that appcache works with authentication. Should say SUCCESS:</p>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
// Store authentication credentials.
text.appendChild(document.createTextNode("SUCCESS"));
document.body.replaceChild(text, document.getElementsByTagName("iframe")[0]);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
</body>
window.open('resources/crash-when-navigating-away-then-back.html')
}
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
- layoutTestController.setCanOpenWindows();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
+ testRunner.setCanOpenWindows();
} else {
document.write('<div id="manual-instructions">Click <a href="javascript:openWindow()">this link</a> twice. A window should open and close twice without crashing.</div>')
}
function closedWindow()
{
- if (window.layoutTestController)
+ if (window.testRunner)
setTimeout(openWindow, 100);
}
</script>
-<body onload="if (window.layoutTestController) openWindow()">
+<body onload="if (window.testRunner) openWindow()">
<div>This tests that loading a page with a manifest, navigating away from the page, and then back does not cause a crash.</div>
<div id="result">FAILURE - test not completed</div>
</html>
<body>
<p>Test that application cache doesn't block loading resources from the same origin with credential.</p>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function test()
function success()
{
document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.oncached = test;
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
function frameDone(evt)
{
log("DONE");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.onnoupdate = function() { test() }
<html>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
window.onmessage = function() {
document.getElementById('result').innerHTML = "SUCCESS";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function killChildFrame() {
var isParentFrame = window == window.top;
if (isParentFrame) {
- if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
window.onmessage = function() {
document.getElementById('result').innerHTML = "SUCCESS";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
} else {
window.applicationCache.onchecking = function() {
<script type="text/javascript">
var onloadHasBeenCalled = false;
- if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
window.applicationCache.onchecking = function() {
if (onloadHasBeenCalled)
document.getElementById('result').innerHTML = "SUCCESS"
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
<script src="THIS_FILE_DOES_NOT_EXIST.js" type="text/javascript"></script>
}
}
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
var ifrCache;
try { ifrCache.update(); } catch (ex) { }
try { ifrCache.swapCache(); } catch (ex) { }
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 0);
}
</script>
<p>Test that accessing a detached iframe's applicationCache window property doesn't assert. If you don't see an assert, it passed.</p>
<iframe src="about:blank"></iframe>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
function test()
{
<html>
<body>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
- layoutTestController.dumpAsText();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
}
window.addEventListener("message", function(e) {
document.getElementById("result").innerHTML = e.data;
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, false);
</script>
<p>Test that a resource from a different https origin is not cached.</p>
<p>Test that a different origin manifest is completely ignored.</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
- layoutTestController.dumpAsText();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
}
var result = document.getElementById("result");
if (result.innerHTML == originalResult)
result.innerHTML = applicationCache.status == applicationCache.UNCACHED ? "PASS" : "FAIL: cache status in not UNCACHED";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
setTimeout(done, 100);
<body>
<p>Test that application cache doesn't block loading resources with different schemes.</p>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function test()
function success()
{
document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.oncached = test;
<p>Test to ensure the the window.applicationCache attribute is defined but non-functional with the feature disabled.</p>
<div id=result></div>
<script>
- if (window.layoutTestController) {
- layoutTestController.overridePreference("WebKitOfflineWebApplicationCacheEnabled", false);
- layoutTestController.dumpAsText();
+ if (window.testRunner) {
+ testRunner.overridePreference("WebKitOfflineWebApplicationCacheEnabled", false);
+ testRunner.dumpAsText();
}
function log(message)
<html manifest="resources/document-write-html-element.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function test()
document.write("SUCCESS, no assertion failure");
document.write("<br>applicationCache.status == " + applicationCache.status);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.oncached = test;
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
window.onload = function()
setTimeout(function() {
document.write("DONE. Passed if there were no alerts displayed.");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 100);
}
</script>
is not associated with any cache.</p>
<div id="result"></div>
<script>
-if (window.layoutTestController)
- layoutTestController.dumpAsText();
+if (window.testRunner)
+ testRunner.dumpAsText();
function log(message)
{
<div id="result">FAILURE</div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function cached()
{
document.getElementById('result').innerHTML = 'SUCCESS';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
<html manifest="resources/fail-on-update-2.php">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function setManifestDeleted(state)
{
if (!--subframesLeft) {
document.write('<p>SUCCESS: No crash.</p>');
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<html manifest="resources/fail-on-update.php">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function setManifestDeleted(state)
applicationCache.update();
window.location = 'data:text/html,<p>SUCCESS: No crash.</p>' +
'<script>' +
- 'if (window.layoutTestController) layoutTestController.notifyDone();' +
+ 'if (window.testRunner) testRunner.notifyDone();' +
'</scri' + 'pt>';
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
var hadError = false;
}
log(hadError ? "FAILURE" : "SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.onnoupdate = function() { test() }
Application Cache crash when a fallback document has a manifest URL.</p>
<div id="result">Testing...</div>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
- layoutTestController.dumpAsText();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
}
else
throw "Try again";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
} catch (ex) {
// Not done yet.
setTimeout(frameDone, 100);
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
applicationCache.addEventListener('noupdate', function() { log("noupdate"); test() }, false);
applicationCache.addEventListener('cached', function() { log("cached"); test() }, false);
-window.addEventListener("message", function() { log("SUCCESS"); if (window.layoutTestController) layoutTestController.notifyDone() }, false);
+window.addEventListener("message", function() { log("SUCCESS"); if (window.testRunner) testRunner.notifyDone() }, false);
</script>
</body>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
{
setTimeout(function() {
log("DONE");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 10);
}
<html>
<div></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
var div = document.getElementsByTagName("div")[0];
setTimeout(function() {
document.write("DONE. Passed if there were no alerts displayed.");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 100);
}
</script>
<html>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
document.removeChild(document.documentElement);
setTimeout(function() {
document.write("DONE. Passed if there were no alerts displayed.");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 100);
}
</script>
<p>Test that an application cache update works again after interruption.</p>
<pre id=log></pre>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(msg)
{
log("NOUPDATE");
log("\nFAIL - the cache was already present, so we couldn't test initial loading");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function oncached()
{
log("CACHED");
log("\nPASS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function onerror()
{
log("ERROR");
log("\nFAIL");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
<html manifest="resources/load-from-appcache-defer-resume-crash.manifest">
<head>
<script>
-if (window.layoutTestController) {
- layoutTestController.setUseDeferredFrameLoading(true)
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.setUseDeferredFrameLoading(true)
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function finishIfNeeded() {
if (window.location.hash) {
document.getElementById('result').innerText = "SUCCESS";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
function run() {
<p>Should say SUCCESS:</p>
<div id="result"></div>
<script type="text/javascript">
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
ifr.onload = frameCreated;
setTimeout(function() {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}, 300);
document.body.appendChild(ifr);
function frameCreated()
{
log("FAILURE: A local resource was opened in an iframe");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function reload()
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
} else {
log("SUCCESS");
setNetworkEnabled(true);
- if (window.layoutTestController)
- layoutTestController.notifyDone()
+ if (window.testRunner)
+ testRunner.notifyDone()
}
}
<p>Test that application cache is consulted again after a redirect response.</p>
<div id="result">Testing...</div>
<script>
-if (window.layoutTestController) {
- layoutTestController.waitUntilDone();
- layoutTestController.dumpAsText();
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
}
function setNetworkEnabled(state)
function done()
{
- if (window.layoutTestController) {
+ if (window.testRunner) {
applicationCache.onerror = null;
- layoutTestController.notifyDone();
+ testRunner.notifyDone();
}
setNetworkEnabled(true);
}
<div id="result">FAILURE</div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function cached()
{
document.getElementById('result').innerHTML = 'SUCCESS';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
}
log(hadError ? "FAILURE" : "SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.onnoupdate = function() { test() }
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<div>This tests that a manifest that contains an empty file will not crash the browser.</div>
<div id="result">FAILURE</div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function cached()
{
document.getElementById('result').innerHTML = 'SUCCESS';
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
<html manifest="resources/maxsize.manifest">
<body>\r
<script>\r
- if (window.layoutTestController) {
- layoutTestController.setAppCacheMaximumSize(10 * 1024);
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.setAppCacheMaximumSize(10 * 1024);
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
- if (window.layoutTestController) {
- layoutTestController.setAppCacheMaximumSize(100 * 1024 * 1024);
- layoutTestController.notifyDone();
+ if (window.testRunner) {
+ testRunner.setAppCacheMaximumSize(100 * 1024 * 1024);
+ testRunner.notifyDone();
}
}
<html manifest="resources/navigating-away-while-cache-attempt-in-progress.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function navigateAway() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
else
window.location.href = "about:blank"
}
<p>Should say SUCCESS:</p>
<div id="result"></div>
<script type="text/javascript">
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("FAIL: Frame.onload was called, but the image doesn't seem to be loaded.");
- if (window.layoutTestController) {
+ if (window.testRunner) {
applicationCache.onerror = null;
- layoutTestController.notifyDone();
+ testRunner.notifyDone();
}
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
createFrame();
} else {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone()
+ if (window.testRunner)
+ testRunner.notifyDone()
}
}
<head>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message) {
function testComplete(result) {
log(result);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function syncGet(url) {
<div id="result"></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
log(hadError ? "FAIL" : "PASS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', test, false);
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
addIFrameWithAppCache();
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function addIFrameWithAppCache() {
log(event.data);
if (event.data === "PASS - cached iframe-1") {
log("clearing cache for origin");
- layoutTestController.clearApplicationCacheForOrigin("http://127.0.0.1:8000");
+ testRunner.clearApplicationCacheForOrigin("http://127.0.0.1:8000");
var frame = document.getElementById('cachedFrame');
frame.contentWindow.postMessage("appcache_status", "*");
} else if (event.data === "appcache_status=5"){
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.setApplicationCacheOriginQuota(20*1024);
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.setApplicationCacheOriginQuota(20*1024);
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
addFirstIFrame();
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
// Stages.
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.setApplicationCacheOriginQuota(1024);
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.setApplicationCacheOriginQuota(1024);
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
addIFrame();
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
// Stages.
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.disallowIncreaseForApplicationCacheQuota();
- layoutTestController.setApplicationCacheOriginQuota(20*1024);
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.disallowIncreaseForApplicationCacheQuota();
+ testRunner.setApplicationCacheOriginQuota(20*1024);
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
addFirstIFrame();
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
// Stages.
// Expected to fail, then increase the quota.
addIFrameWithContinuation("resources/quota-origin-iframe-2.html", function(event) {
log(event.data);
- layoutTestController.setApplicationCacheOriginQuota(100*1024);
+ testRunner.setApplicationCacheOriginQuota(100*1024);
addThirdIFrame();
});
}
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
log("Cleared application cache");
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
addFirstIFrame();
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
// Stages.
// Expected to succeed.
addIFrameWithContinuation("resources/origin-usage-iframe-1.html", function(event) {
log(event.data);
- var usage = layoutTestController.applicationCacheDiskUsageForOrigin(drtURL);
+ var usage = testRunner.applicationCacheDiskUsageForOrigin(drtURL);
log("Usage for " + drtURL + " after first frame is between 15000 and 16000 bytes: " + ((usage > 15000) && (usage < 16000)));
addSecondIFrame();
});
function addSecondIFrame() {
addIFrameWithContinuation("resources/origin-usage-iframe-2.html", function(event) {
log(event.data);
- var usage = layoutTestController.applicationCacheDiskUsageForOrigin(drtURL);
+ var usage = testRunner.applicationCacheDiskUsageForOrigin(drtURL);
log("Usage for " + drtURL + " after second frame is between 30000 and 32000 bytes: " + ((usage > 30000) && (usage < 32000)));
log("Removing Application Cache for " + drtURL);
- layoutTestController.clearApplicationCacheForOrigin(drtURL);
+ testRunner.clearApplicationCacheForOrigin(drtURL);
- log("Usage for " + drtURL + ": " + layoutTestController.applicationCacheDiskUsageForOrigin(drtURL));
+ log("Usage for " + drtURL + ": " + testRunner.applicationCacheDiskUsageForOrigin(drtURL));
finishTest();
});
function handleMessage(event) {
if (event.data === "created_cache") {
- log("Origins with application cache after frame was cached: " + layoutTestController.originsWithApplicationCache());
+ log("Origins with application cache after frame was cached: " + testRunner.originsWithApplicationCache());
} else {
log("received invalid message from frame '" + event.data + "'");
}
// Start and end.
function startTest() {
- if (window.layoutTestController) {
- layoutTestController.clearAllApplicationCaches();
- log("Origins with application cache after deletion: " + layoutTestController.originsWithApplicationCache());
- layoutTestController.dumpApplicationCacheDelegateCallbacks();
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.clearAllApplicationCaches();
+ log("Origins with application cache after deletion: " + testRunner.originsWithApplicationCache());
+ testRunner.dumpApplicationCacheDelegateCallbacks();
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
window.onmessage = handleMessage;
}
function finishTest() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
</script>
<html manifest="resources/progress-counter.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
var expectedTotal = 2
var eventsReceived = 0;
function done() {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function progress(event)
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
state = 2;
setTimeout("frames[0].test()", 0);
} else if (state == 2) {
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
function test5()
{
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function resetManifest()
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<p id="result">FAILURE</p>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function canLoad(url)
document.getElementById('result').innerHTML = "SUCCESS"
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
{
window.opener.document.getElementById('result').innerHTML = 'SUCCESS';
window.close();
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
<html manifest="resources/simple.manifest">
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function cached()
document.getElementById('result').innerHTML = "SUCCESS"
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', cached, false);
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
applicationCache.onupdateready = function() { log("FAIL: received unexpected updateready event") }
applicationCache.onerror = function() { log("FAIL: received unexpected error event") }
-window.addEventListener("message", function() { log("SUCCESS"); if (window.layoutTestController) layoutTestController.notifyDone() }, false);
+window.addEventListener("message", function() { log("SUCCESS"); if (window.testRunner) testRunner.notifyDone() }, false);
</script>
</body>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
function debug(message)
{
// If running manually in the browser, print the sequence of events.
- if (!window.layoutTestController)
+ if (!window.testRunner)
log(message);
}
{
if (receivedExpectedMessage && receivedCheckingEvent && receivedNoupdateEvent) {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
function debug(message)
{
// If running manually in the browser, print the sequence of events.
- if (!window.layoutTestController)
+ if (!window.testRunner)
log(message);
}
{
if (receivedExpectedMessage && receivedCheckingEventsCounter == 2 && receivedNoupdateEventsCounter == 2) {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
function debug(message)
{
// If running manually in the browser, print the sequence of events.
- if (!window.layoutTestController)
+ if (!window.testRunner)
log(message);
}
{
if (receivedExpectedMessage && receivedCheckingEventsCounter == 2 && receivedNoupdateEventsCounter == 2) {
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
}
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
log((applicationCache.status == applicationCache.IDLE) ? "Cache status is IDLE" : ("FAIL: Incorrect cache status, " + applicationCache.status));
log("DONE");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.oncached = test;
<body>
<p>Test that online whitelist wildcard flag is implemented.</p>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function test()
} catch (ex) {
document.body.appendChild(document.createTextNode(ex));
}
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.oncached = test;
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
function errorEventListener()
{
log("FAILURE: An error event was dispatched on window.applicationCache.");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function verifyStatus()
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', verifyStatus, false);
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<p>Should say SUCCESS:</p>
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText()
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText()
+ testRunner.waitUntilDone();
}
function log(message)
else
log("SUCCESS");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
applicationCache.addEventListener('cached', function() { log("cached"); cacheCallback() }, false);
<div id=result></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function log(message)
} else
log("FAIL: subframe didn't get a correct cache");
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
window.addEventListener("message", frameMessageReceived, false);
<html>
<body>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
var img = new Image();
// cancel resource load within didFail()
window.stop();
document.body.appendChild(document.createTextNode("PASS"));
- layoutTestController.notifyDone();
+ testRunner.notifyDone();
}
// Port 7 will likely refuse the connection, causing a didFail()
We shouldn't crash if one of those events stops the load.\r
See https://bugs.webkit.org/show_bug.cgi?id=72762.\r
<script>\r
-if (window.layoutTestController) {\r
- layoutTestController.dumpAsText();\r
- layoutTestController.waitUntilDone();\r
+if (window.testRunner) {\r
+ testRunner.dumpAsText();\r
+ testRunner.waitUntilDone();\r
}\r
\r
function obl(e) {\r
}\r
\r
function finish() {\r
- if (window.layoutTestController)\r
- layoutTestController.notifyDone();\r
+ if (window.testRunner)\r
+ testRunner.notifyDone();\r
}\r
</script>\r
<object type="application/x-no-such-mime" onbeforeload="obl();"></embed>\r
</body>\r
-</html>
\ No newline at end of file
+</html>
<pre id="console"></pre>
<script>
// Asynchronous test because this requires a new window to perform multiple navigations.
- if (window.layoutTestController) {
- window.layoutTestController.dumpAsText();
- window.layoutTestController.waitUntilDone();
- window.layoutTestController.setCanOpenWindows();
+ if (window.testRunner) {
+ window.testRunner.dumpAsText();
+ window.testRunner.waitUntilDone();
+ window.testRunner.setCanOpenWindows();
}
// Values to check.
// Test completed.
target.close();
- if (window.layoutTestController)
- window.layoutTestController.notifyDone();
+ if (window.testRunner)
+ window.testRunner.notifyDone();
}, false);
<pre id="console"></pre>
<script>
// Asynchronous test because this requires a new window to perform multiple navigations.
- if (window.layoutTestController) {
- window.layoutTestController.dumpAsText();
- window.layoutTestController.waitUntilDone();
- window.layoutTestController.setCanOpenWindows();
+ if (window.testRunner) {
+ window.testRunner.dumpAsText();
+ window.testRunner.waitUntilDone();
+ window.testRunner.setCanOpenWindows();
}
// Values to check.
// Test completed.
target.close();
- if (window.layoutTestController)
- window.layoutTestController.notifyDone();
+ if (window.testRunner)
+ window.testRunner.notifyDone();
}, false);
// loaded from the cache.
if (!sessionStorage.lastRandom) {
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
}
document.body.innerText = result;
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function iframeLoaded()
// loaded from the cache.
if (!sessionStorage.lastRandom) {
- if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
}
document.body.innerText = result;
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function scriptLoaded()
<body>
<div id="result"></div>
<script>
-if (window.layoutTestController) {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
}
function logAndFinish(message)
var xhr = new XMLHttpRequest;
xhr.open("GET", "../resources/reset-temp-file.php?filename=post.tmp", false);
xhr.send(null);
- if (window.layoutTestController)
- layoutTestController.notifyDone();
+ if (window.testRunner)
+ testRunner