mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[test] test cases for integrity checks
This commit is contained in:
parent
0cbc3d4a5c
commit
c7489edcf5
18
test/ecmascript/jqfind_bad.html
Normal file
18
test/ecmascript/jqfind_bad.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>find demo</title>
|
||||||
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-DDtsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p><span>Hello</span>, how are you?</p>
|
||||||
|
<p>Me? I'm <span>good</span>.</p>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( "p" ).find( "span" ).css( "color", "red" );
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
18
test/ecmascript/jqfind_ok.html
Normal file
18
test/ecmascript/jqfind_ok.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>find demo</title>
|
||||||
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p><span>Hello</span>, how are you?</p>
|
||||||
|
<p>Me? I'm <span>good</span>.</p>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$( "p" ).find( "span" ).css( "color", "red" );
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user