[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.19-706-ge5415e9

jianli at chromium.org jianli at chromium.org
Thu Feb 4 21:25:18 UTC 2010


The following commit has been merged in the webkit-1.1 branch:
commit 863d83c8582612122f2a45f00570c7accae846e3
Author: jianli at chromium.org <jianli at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Jan 22 22:59:12 2010 +0000

    Add test for new attributes introduced in File and Blob interfaces.
    https://bugs.webkit.org/show_bug.cgi?id=33980
    
    Reviewed by Darin Adler.
    
    * editing/pasteboard/file-input-files-access-expected.txt:
    * editing/pasteboard/script-tests/file-input-files-access.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53720 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 78bdb28..7fffce2 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,13 @@
+2010-01-22  Jian Li  <jianli at chromium.org>
+
+        Reviewed by Darin Adler.
+
+        Add test for new attributes introduced in File and Blob interfaces.
+        https://bugs.webkit.org/show_bug.cgi?id=33980
+
+        * editing/pasteboard/file-input-files-access-expected.txt:
+        * editing/pasteboard/script-tests/file-input-files-access.js:
+
 2010-01-22  Alexey Proskuryakov  <ap at apple.com>
 
         Reviewed by Darin Adler.
diff --git a/LayoutTests/editing/pasteboard/file-input-files-access-expected.txt b/LayoutTests/editing/pasteboard/file-input-files-access-expected.txt
index 704ab62..caa7ccc 100644
--- a/LayoutTests/editing/pasteboard/file-input-files-access-expected.txt
+++ b/LayoutTests/editing/pasteboard/file-input-files-access-expected.txt
@@ -9,11 +9,15 @@ PASS fileInput.files.length is 0
 Dragging a single (non-existant) file to a file input control:
 PASS fileInput.value is "DRTFakeFile"
 PASS fileInput.files.length is 1
+PASS fileInput.files[0].name is "DRTFakeFile"
+PASS fileInput.files[0].size is 0
 PASS fileInput.files[0].fileName is "DRTFakeFile"
 PASS fileInput.files[0].fileSize is 0
 Dragging a real file to a file input control:
 PASS fileInput.value is "apple.gif"
 PASS fileInput.files.length is 1
+PASS fileInput.files[0].name is "apple.gif"
+PASS fileInput.files[0].size is 1476
 PASS fileInput.files[0].fileName is "apple.gif"
 PASS fileInput.files[0].fileSize is 1476
 Dragging a directory onto an file input control:
@@ -33,8 +37,12 @@ FAIL fileInput.files.length should be 0. Was 1.
 Dragging two files to a multi-file input control:
 PASS fileInput.value is "apple.gif"
 PASS fileInput.files.length is 2
+PASS fileInput.files[0].name is "apple.gif"
+PASS fileInput.files[0].size is 1476
 PASS fileInput.files[0].fileName is "apple.gif"
 PASS fileInput.files[0].fileSize is 1476
+PASS fileInput.files[1].name is "mozilla.gif"
+PASS fileInput.files[1].size is 2593
 PASS fileInput.files[1].fileName is "mozilla.gif"
 PASS fileInput.files[1].fileSize is 2593
 Dragging a file and a directory onto a mutli-file input control:
diff --git a/LayoutTests/editing/pasteboard/script-tests/file-input-files-access.js b/LayoutTests/editing/pasteboard/script-tests/file-input-files-access.js
index 9373fa1..a093039 100644
--- a/LayoutTests/editing/pasteboard/script-tests/file-input-files-access.js
+++ b/LayoutTests/editing/pasteboard/script-tests/file-input-files-access.js
@@ -26,6 +26,10 @@ function fileListShouldBe(fileListString, filesArray)
     shouldBe(fileListString + ".length", "" + filesArray.length);
     for (var x = 0; x < filesArray.length; x++) {
         var fileValueString = fileListString + "[" + x + "]";
+        shouldBeEqualToString(fileValueString + ".name", filesArray[x]['name']);
+        shouldBe(fileValueString + ".size", "" + filesArray[x]['size']);
+
+        // FIXME: to be removed after legacy attributes are removed. 
         shouldBeEqualToString(fileValueString + ".fileName", filesArray[x]['name']);
         shouldBe(fileValueString + ".fileSize", "" + filesArray[x]['size']);
     }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list