Changeset 113305 in webkit


Ignore:
Timestamp:
Apr 5, 2012 2:25:20 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][DRT] Fail fast/filesystem/flags-passing.html on JSC
https://bugs.webkit.org/show_bug.cgi?id=83137

Patch by ChangSeok Oh <ChangSeok Oh> on 2012-04-05
Reviewed by Kentaro Hara.

fast/filesystem/flags-passing.html is failed on webkitgtk+ applied FileSystem API patch
for bug58443. 'testsList' is a global array object, but it's accessed in runNextTest
function object like this, "this[testsList[testCounter++]]();". I'm not familiar
with JavaScript and V8, but in my understanding, it looks a bit strange.
'this' in the statement means runNextTest function object which doesn't have
testList array object. (It's a global scope variable.) This test might be able to
pass on V8 JS engine, but not on JSC at least my try.
'testsList' is changed from a function name array to a function array.

  • fast/filesystem/script-tests/flags-passing.js:

(runNextTest):

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r113304 r113305  
     12012-04-05  ChangSeok Oh  <shivamidow@gmail.com>
     2
     3        [GTK][DRT] Fail fast/filesystem/flags-passing.html on JSC
     4        https://bugs.webkit.org/show_bug.cgi?id=83137
     5
     6        Reviewed by Kentaro Hara.
     7
     8        fast/filesystem/flags-passing.html is failed on webkitgtk+ applied FileSystem API patch
     9        for bug58443. 'testsList' is a global array object, but it's accessed in runNextTest
     10        function object like this, "this[testsList[testCounter++]]();". I'm not familiar
     11        with JavaScript and V8, but in my understanding, it looks a bit strange.
     12        'this' in the statement means runNextTest function object which doesn't have
     13        testList array object. (It's a global scope variable.) This test might be able to
     14        pass on V8 JS engine, but not on JSC at least my try.
     15        'testsList' is changed from a function name array to a function array.
     16
     17        * fast/filesystem/script-tests/flags-passing.js:
     18        (runNextTest):
     19
    1202012-04-05  Philippe Normand  <pnormand@igalia.com>
    221
  • trunk/LayoutTests/fast/filesystem/script-tests/flags-passing.js

    r104126 r113305  
    99
    1010var testsList = [
    11     'runObjectTest',
    12     'cleanupAndRunNext',
    13     'runJSONTest',
    14     'runJSONTestWithExclusive',
    15     'runNullTest',
    16     'runNonObjectTest'
     11    runObjectTest,
     12    cleanupAndRunNext,
     13    runJSONTest,
     14    runJSONTestWithExclusive,
     15    runNullTest,
     16    runNonObjectTest
    1717];
    1818var testCounter = 0;
     
    2525        finishJSTest();
    2626    } else
    27         this[testsList[testCounter++]]();
     27        (testsList[testCounter++])();
    2828}
    2929
Note: See TracChangeset for help on using the changeset viewer.