summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2011-03-02 07:04:18 +0000
committertkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2011-03-02 07:04:18 +0000
commit3b2d732d28ac4577f8f23679ca57e38b75c672d7 (patch)
treedacd9e26940bf5e3fe950fd2be134956b617cb2f /third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
parentd1dbc9ef261f02a8f6bc0f63e5bbfde4b8a6f247 (diff)
downloadchromium_src-3b2d732d28ac4577f8f23679ca57e38b75c672d7.zip
chromium_src-3b2d732d28ac4577f8f23679ca57e38b75c672d7.tar.gz
chromium_src-3b2d732d28ac4577f8f23679ca57e38b75c672d7.tar.bz2
2011-03-01 Kent Tamura <tkent@chromium.org>
Reviewed by Dimitri Glazkov. Assertion fails when a form validation bubble appears https://bugs.webkit.org/show_bug.cgi?id=55550 * fast/forms/interactive-validation-attach-assertion-expected.txt: Added. * fast/forms/interactive-validation-attach-assertion.html: Added. * platform/gtk/Skipped: * platform/mac/Skipped: * platform/qt/Skipped: * platform/win/Skipped: 2011-03-01 Kent Tamura <tkent@chromium.org> Reviewed by Dimitri Glazkov. Assertion fails when a form validation bubble appears https://bugs.webkit.org/show_bug.cgi?id=55550 Test: fast/forms/interactive-validation-attach-assertion.html * html/ValidationMessage.cpp: (WebCore::ValidationMessage::buildBubbleTree): Just remove unnecessary attach(). 2011-03-01 Kent Tamura <tkent@chromium.org> Reviewed by Dimitri Glazkov. Assertion fails when a form validation bubble appears https://bugs.webkit.org/show_bug.cgi?id=55550 Test: fast/forms/interactive-validation-attach-assertion.html * DumpRenderTree/chromium/WebPreferences.cpp: (WebPreferences::applyTo): Enable the interactive validation feature by default. This matches to Chromium browser. git-svn-id: svn://svn.chromium.org/blink/trunk@80097 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html b/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
new file mode 100644
index 0000000..ac12587
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+
+<form>
+<input required>
+<input type=submit>
+</form>
+
+<div id=console></div>
+
+<script>
+function check() {
+ testPassed('Not crashed.');
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+}
+
+// Make sure the text field is rendered.
+document.getElementsByTagName('input')[0].offsetLeft;
+
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ setTimeout(check, 10);
+ document.getElementsByTagName('input')[1].click();
+} else {
+ debug('Click the submit button. The test passes if the browser doesn\'t crash.');
+}
+
+</script>
+</body>
+</html>