mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>HTML Test: dropzone_attribute_data_item_kind_string</title>
|
||||
<link rel='author' title='Intel' href='http://www.intel.com'>
|
||||
<link rel='help' href='http://www.w3.org/html/editing/dnd/the-datatransfer-interface/'>
|
||||
<script src='/resources/testharness.js'></script>
|
||||
<script src='/resources/testharnessreport.js'></script>
|
||||
<style>
|
||||
#drop {
|
||||
border: 2px solid black;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 20px;
|
||||
}
|
||||
#drag {
|
||||
color: blue;
|
||||
margin: 20px auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>Select and drag the blue text to rectangular box.</div>
|
||||
<div id='drag' draggable>blue text</div>
|
||||
<div id='drop' dropzone='copy string:text/plain'></div>
|
||||
<div id='log'> </div>
|
||||
|
||||
<script>
|
||||
var drag;
|
||||
setup(function() {
|
||||
drag = document.querySelector('#drag');
|
||||
}, {explicit_done: true, explicit_timeout: true});
|
||||
|
||||
on_event(drag, 'dragstart', function(event) {
|
||||
test(function() {
|
||||
assert_equals(event.dataTransfer.effectAllowed, 'uninitialized');
|
||||
}, 'effectAllowed should be "uninitialized"');
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue