summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/resources/state-restore-empty-state-1.html
blob: babc559f97ea730d4fe34615244517519f12ae89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<script src="../../../resources/js-test.js"></script>
<script>
description('State vector should be empty if nothing is saved.');
if (window.internals) {
    var states = internals.formControlStateOfHistoryItem();
    shouldBe('states.length', '0');
} else {
    debug('Need window.internals.formControlStateOfPreviousHistoryItem().');
}
jsTestIsAsync = true;
finishJSTest();
</script>