Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html

Issue 1232003009: Implement DragEvent and move MouseEvent.dataTransfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix failure of layouttest Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html
diff --git a/LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html b/LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html
index 5199e09947445ff62fca04262f663d9cf909062a..8116cc5af7a761de69c9e1bc3eb993907171ea9a 100644
--- a/LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html
+++ b/LayoutTests/imported/web-platform-tests/html/editing/dnd/synthetic/001.html
@@ -12,13 +12,11 @@ test(function() {
assert_own_property(window,'DragEvent');
}, 'window.DragEvent should be exposed' );
test(function() {
Rick Byers 2015/08/06 14:22:32 These "imported/web-platform-tests" are special, s
Jimmy Jo 2015/08/07 02:42:03 Done.
- assert_throws('NOT_SUPPORTED_ERR', function() {
var evt = document.createEvent('DragEvent');
- });
-}, 'createEvent should not be able to create a DragEvent' );
+}, 'createEvent should be able to create a DragEvent' );
test(function() {
var evt = new DragEvent('dragstart');
- assert_false( !!evt.initDragEvent, 'initDragEvent' );
+ assert_true( !!evt.initDragEvent, 'initDragEvent' );
assert_true( !!evt.initMouseEvent, 'initMouseEvent' );
assert_true( !!evt.initUIEvent, 'initUIEvent' );
assert_true( !!evt.initEvent, 'initEvent' );
@@ -55,7 +53,7 @@ test(function() {
assert_throws(new TypeError(), function() {
var evt = new DragEvent('dragstart', {dataTransfer:{}});
});
-}, 'DragEvent constructor with custom object as the dataTransfer parameter should throw TypeError' );
+}, 'DragEvent constructor with custom object as the dataTransfer parameter should not throw TypeError' );
test(function() {
var evt = new DragEvent('dragstart'), div = document.createElement('div'), ranlistener = false;
div.ondragstart = function () { ranlistener = true; };
@@ -117,4 +115,4 @@ test(function() {
</script>
<noscript><p>Enable JavaScript and reload</p></noscript>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698