tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

historical.any.js (2753B)


      1 // META: title=IndexedDB: Historical features
      2 // META: global=window,worker
      3 
      4 'use strict';
      5 
      6 test(function() {
      7  // Replaced circa December 2011 by 'error'.
      8  assert_false('errorCode' in IDBRequest.prototype);
      9 }, '"errorCode" should not be supported on IDBRequest.');
     10 
     11 test(function() {
     12  // Replaced circa May 2012 by a DOMString (later, IDBRequestReadyState enum).
     13  assert_false('LOADING' in IDBRequest);
     14 }, '"LOADING" should not be supported on IDBRequest.');
     15 
     16 test(function() {
     17  // Replaced circa May 2012 by a DOMString (later, IDBRequestReadyState enum).
     18  assert_false('DONE' in IDBRequest);
     19 }, '"DONE" should not be supported on IDBRequest.');
     20 
     21 test(function() {
     22  // Replaced circa December 2011 by 'oldVersion'/'newVersion'.
     23  assert_false('version' in IDBVersionChangeEvent.prototype);
     24 }, '"version" should not be supported on IDBVersionChangeEvent.');
     25 
     26 test(function() {
     27  // Replaced circa December 2011 by open() with version.
     28  assert_false('setVersion' in IDBDatabase.prototype);
     29 }, '"setVersion" should not be supported on IDBDatabase.');
     30 
     31 test(function() {
     32  // Replaced circa May 2012 by a DOMString (later, IDBCursorDirection enum).
     33  assert_false('NEXT' in IDBCursor);
     34 }, '"NEXT" should not be supported on IDBCursor.');
     35 
     36 test(function() {
     37  // Replaced circa May 2012 by a DOMString (later, IDBCursorDirection enum).
     38  assert_false('NEXT_NO_DUPLICATE' in IDBCursor);
     39 }, '"NEXT_NO_DUPLICATE" should not be supported on IDBCursor.');
     40 
     41 test(function() {
     42  // Replaced circa May 2012 by a DOMString (later, IDBCursorDirection enum).
     43  assert_false('PREV' in IDBCursor);
     44 }, '"PREV" should not be supported on IDBCursor.');
     45 
     46 test(function() {
     47  // Replaced circa May 2012 by a DOMString (later, IDBCursorDirection enum).
     48  assert_false('PREV_NO_DUPLICATE' in IDBCursor);
     49 }, '"PREV_NO_DUPLICATE" should not be supported on IDBCursor.');
     50 
     51 test(function() {
     52  // Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
     53  assert_false('READ_ONLY' in IDBTransaction);
     54 }, '"READ_ONLY" should not be supported on IDBTransaction.');
     55 
     56 test(function() {
     57  // Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
     58  assert_false('READ_WRITE' in IDBTransaction);
     59 }, '"READ_WRITE" should not be supported on IDBTransaction.');
     60 
     61 test(function() {
     62  // Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
     63  assert_false('VERSION_CHANGE' in IDBTransaction);
     64 }, '"VERSION_CHANGE" should not be supported on IDBTransaction.');
     65 
     66 // Gecko-proprietary interfaces.
     67 var removedFromWindow = [
     68  'IDBFileHandle',
     69  'IDBFileRequest',
     70  'IDBMutableFile',
     71 ];
     72 
     73 removedFromWindow.forEach(function(name) {
     74  test(function() {
     75    assert_false(name in self);
     76  }, '"' + name + '" should not be supported');
     77 });