Skip to content

Commit

Permalink
Fix fast/forms/color tests to remove orphan closing head tag and move…
Browse files Browse the repository at this point in the history
… script below body tag

Fix fast/forms/color tests to remove orphan closing head tag and move script below body tag

https://bugs.webkit.org/show_bug.cgi?id=245627

Reviewed by Aditya Keerthi.

Fix tests to remove orphan head tag and move testing scripts below body tag respectively.

This change is not any functionality change, hence it does not requires dedicated test case and is standard testing hygenie to fix any issues.

* LayoutTests/fast/forms/color/color-input-activate-crash.html: Update Tests based on above
* LayoutTests/fast/forms/color/color-input-reset-crash.html: Update Tests based on above
* LayoutTests/fast/forms/color/color-type-change-on-input-crash.html: Update Tests based on above

Canonical link: https://commits.webkit.org/254829@main
  • Loading branch information
Ahmad-S792 authored and nt1m committed Sep 24, 2022
1 parent 53ebb85 commit 2a4cd41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions LayoutTests/fast/forms/color/color-input-activate-crash.html
@@ -1,9 +1,8 @@

<!DOCTYPE html>
<html>
<script src="../../../resources/ui-helper.js"></script>
</head>
<body>
<script src="../../../resources/ui-helper.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
Expand Down
3 changes: 1 addition & 2 deletions LayoutTests/fast/forms/color/color-input-reset-crash.html
@@ -1,9 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test.js"></script>
<script src="../../../resources/ui-helper.js"></script>
</head>
<body>
<form id="form">
<input type="color" id="color">
</form>
Expand Down
@@ -1,8 +1,7 @@
<!DOCTYPE html>
<html>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script src="../../../resources/js-test.js"></script>
<script>
description('Changing the input type from "color" to another in "input" event handler should not crash.');

Expand Down

0 comments on commit 2a4cd41

Please sign in to comment.