Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: LayoutTests/fast/loader/stateobjects/state-attribute-history-getter.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/loader/stateobjects/state-attribute-history-getter.html
diff --git a/LayoutTests/fast/loader/stateobjects/state-attribute-history-getter.html b/LayoutTests/fast/loader/stateobjects/state-attribute-history-getter.html
deleted file mode 100644
index 0fcf76060ae031e816a5b8543c705c1890adf052..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/stateobjects/state-attribute-history-getter.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<p>Check that setting a custom getter for history.state works correctly and that PopStateEvent.state still has a correct value.</p>
-<pre id=log></pre>
-<script>
-function log(msg) {
- document.querySelector("#log").innerHTML += msg + "<br>";
-}
-
-if (window.testRunner) {
- testRunner.clearBackForwardList();
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function test() {
- if (!("state" in history)) {
- log("FAIL: history.state is not defined");
- return;
- }
-
- try {
- Object.defineProperty(history, "state", { get: function () { return "oh hai" } });
- } catch (e) {
- // history.state is not configurable in JSC.
- log(e.name == "TypeError" ? "PASS" : ("FAIL: unexpected exception: " + e));
- testRunner.notifyDone();
- return;
- }
-
- if (history.state !== "oh hai") {
- log('FAIL: history.state != "oh hai"');
- }
-
- history.pushState(42, "", "");
- history.pushState(43, "", "");
-
- window.onpopstate = function(e) {
- if (e.state !== 42)
- log("FAIL: e.state expected 42, was " + e.state + " (of type " + typeof e.state + ")");
- else
- log("PASS");
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
- history.back();
-}
-
-test();
-</script>

Powered by Google App Engine
This is Rietveld 408576698