Commit 3ff92575 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Rewrite fast/dom/HTMLMeterElement/meter-element-with-child-crash.html to use selection_test()

This patch changes "cjk-segmentation.html" to utilize |selection_test()| for
ease of maintenance.

Note: Since this test file verifies "justifyCenter" command, following patch
will move this patch into "editing/execCommand/" directory.

Bug: 679977
Change-Id: I2028ed80212771f862d202f07378d7e4edbf4b90
Reviewed-on: https://chromium-review.googlesource.com/903526Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534660}
parent 868a741e
<html> <!doctype html>
<body> <script src="../../../resources/testharness.js"></script>
<h1>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=48019">Bug 48019</a>. It is OK not to crash.</h1> <script src="../../../resources/testharnessreport.js"></script>
<script src="../../../editing/assert_selection.js"></script>
<meter><isindex>
<script> <script>
if (window.testRunner) // Test for https://bugs.webkit.org/show_bug.cgi?id=48019
testRunner.dumpAsText(); // It is OK not to crash.
document.designMode = "on"; selection_test(
document.execCommand("SelectAll"); '<div contenteditable>^<meter><isindex></isindex></meter>|</div>',
document.execCommand("CreateLink", 0, 'foo'); 'justifyCenter',
document.execCommand("JustifyCenter"); [
'<div contenteditable>',
'<div style="text-align: center;"></div>',
'<div style="text-align: center;">|<meter></meter></div>',
'</div>',
],
'JustifyCenter with METER should not crash');
</script> </script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment