summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-07-09 15:53:39 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-07-09 16:02:29 +0200
commit311a80e05c9f712f49e4f3a989abef4dabd5fdbc (patch)
tree91b39cdc0463a380eeb4a4c32516c73aabb8cbc8
parent36e0cd5d0bbba02b6a2348d4b76dd2ee784e0029 (diff)
fdo#65932 testcase
Change-Id: I7105b85f063be801caa3cd397fcdfa24e74caa28
-rw-r--r--sw/CppunitTest_sw_filters_test.mk1
-rw-r--r--sw/qa/core/data/html/pass/fdo65932.html45
-rw-r--r--sw/qa/core/filters-test.cxx4
3 files changed, 50 insertions, 0 deletions
diff --git a/sw/CppunitTest_sw_filters_test.mk b/sw/CppunitTest_sw_filters_test.mk
index df134023442a..7eea51ecbe13 100644
--- a/sw/CppunitTest_sw_filters_test.mk
+++ b/sw/CppunitTest_sw_filters_test.mk
@@ -62,6 +62,7 @@ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
+ linguistic/source/lng \
oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
diff --git a/sw/qa/core/data/html/pass/fdo65932.html b/sw/qa/core/data/html/pass/fdo65932.html
new file mode 100644
index 000000000000..d17936dd1296
--- /dev/null
+++ b/sw/qa/core/data/html/pass/fdo65932.html
@@ -0,0 +1,45 @@
+<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+ <body class="en file-preview-body shmodel-body deferred-resources pdf-preview-pdf-embedded">
+ <div id="outer-frame">
+ <div id="page-content">
+ <div class="nav-header">
+
+
+ <div class="buttons">
+ <a id="create-an-account-button" href="/register?signup_tag=shmodel" target="_blank" class="freshbutton-lightblue">Sign up for Dropbox</a>
+ </div>
+ </div>
+ <div style="display: none;" id="c2d-modal">
+ <div id="create-account-content">
+ <div>
+ <form novalidate="novalidate" id="c2d-register-form" method="post">
+ <input type="hidden" name="signup_tag" value="copy_to_dropbox" />
+ <input type="hidden" name="dl_redir" value="1" />
+ </form>
+ </div>
+ </div>
+ <div style="display:none;" id="login-account-content">
+ <div style="display: none;" id="c2d-twofactor-login">
+ <form novalidate="novalidate" id="c2d-twofactor-login-form" method="post">
+ <div id="c2d-twofactor-error" class="error-message"></div>
+ <div class="sick-input">
+ <label for="email">6-digit code</label>
+ <input autocomplete="off" type="text" id="c2d-twofactor-code" name="twofactor_code" tabindex="13" />
+ </div>
+ <input name="twofactor_login_submit" value="Submit code" class="freshbutton-blue" type="submit" id="twofactor_login_submit" tabindex="15" />
+ <p class="resend-code">
+ <a id="c2d-resend-link">Didn't receive one?</a>
+ </p>
+ </form>
+ </div>
+ </div>
+ </div>
+ <noscript>
+ <p class="center">The Dropbox website requires JavaScript.</p>
+ </noscript>
+ </div>
+ <div style="position: absolute; top: 0; left: 0; font-family: Courier" id="ieconsole"></div>
+ <div style="position:absolute; top:-10000px;width:0px; height:0px; left: 0;" id="FB_HiddenContainer"></div>
+ <div style="display:none;" id="notice-container" class="clearfix"></div>
+ </body>
+</html>
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index e5ba36b31c90..14678a4d05cd 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -117,6 +117,10 @@ void SwFiltersTest::testCVEs()
getURLFromSrc("/sw/qa/core/data/rtf/"),
OUString(),
SFX_FILTER_STARONEFILTER);
+
+ testDir(OUString("HTML"),
+ getURLFromSrc("/sw/qa/core/data/html/"),
+ OUString(sHTML));
}
void SwFiltersTest::setUp()