summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/IndexedDB/idb-explicit-commit.any.js.ini
blob: 1597148088ef79bb6378625e3cc724cfb1b40bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[idb-explicit-commit.any.html]
  expected:
    if (os == "win") and debug and (processor == "x86_64") and swgl: [ERROR, OK, TIMEOUT]
    if (os == "win") and debug and (processor == "x86_64") and not swgl: [ERROR, OK, TIMEOUT]
    if (os == "linux") and not fission and debug: OK
    if (os == "linux") and not fission and not debug: [OK, ERROR]
    if (os == "win") and not debug: [ERROR, OK, TIMEOUT]
    if os == "android": OK
  [Transactions that explicitly commit and have errors should abort.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [FAIL, PASS, NOTRUN]
      if (os == "linux") and not fission and debug: PASS
      if (os == "linux") and not fission and not debug: [PASS, FAIL]
      if (os == "win") and not debug: [FAIL, PASS, TIMEOUT, NOTRUN]
      if os == "android": PASS

  [Transactions that handle all errors properly should behave as expected when an explicit commit is called in an onerror handler.]
    expected:
      if (os == "win") and not swgl and debug and (processor == "x86_64"): [PASS, NOTRUN]
      if (os == "win") and not swgl and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN]
      if (os == "win") and not swgl and not debug and (processor == "x86"): [PASS, NOTRUN]
      if (os == "win") and swgl: [PASS, TIMEOUT]

  [Calling abort on a committed transaction throws and does not prevent persisting the data.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [PASS, TIMEOUT]
      if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN]
      if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN]

  [Transactions with same scope should stay in program order, even if one calls commit.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Calling txn.commit() when txn is inactive should throw.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, NOTRUN]

  [A committed transaction becomes inactive immediately.]
    expected:
      if (os == "win") and not debug: [PASS, NOTRUN]

  [commit() on a version change transaction does not cause errors.]
    expected:
      if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT]
      if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN]

  [Calling commit on an aborted transaction throws.]
    expected:
      if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
      if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]

  [Puts issued after commit are not fulfilled.]
    expected:
      if (os == "win") and not debug: [PASS, NOTRUN]

  [Calling commit on a committed transaction throws.]
    expected:
      if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
      if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]

  [A committed transaction is inactive in future request callbacks.]
    expected:
      if (os == "win") and not debug: [PASS, NOTRUN]

  [Explicitly committed data can be read back out.]
    expected:
      if (processor == "x86") and not debug: [PASS, TIMEOUT]


[idb-explicit-commit.any.worker.html]
  expected:
    if (os == "win") and not swgl and debug and (processor == "x86_64"): [OK, TIMEOUT]
    if (os == "win") and not swgl and not debug: [OK, TIMEOUT]
    if (os == "win") and swgl: [TIMEOUT, OK]
  [Calling txn.commit() when txn is inactive should throw.]
    expected:
      if (os == "win") and debug and swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, NOTRUN]

  [A committed transaction is inactive in future request callbacks.]
    expected:
      if (os == "win") and debug and swgl: [PASS, TIMEOUT]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Puts issued after commit are not fulfilled.]
    expected:
      if (os == "win") and debug and swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Calling commit on an aborted transaction throws.]
    expected:
      if (os == "win") and debug and swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Calling abort on a committed transaction throws and does not prevent persisting the data.]
    expected:
      if (os == "win") and debug and swgl: [PASS, TIMEOUT, NOTRUN]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Transactions that explicitly commit and have errors should abort.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and swgl: [NOTRUN, PASS]
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [PASS, TIMEOUT]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [Transactions with same scope should stay in program order, even if one calls commit.]
    expected:
      if (os == "win") and debug and swgl: [TIMEOUT, PASS, NOTRUN]
      if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
      if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]

  [Calling commit on a committed transaction throws.]
    expected:
      if (os == "win") and debug and swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, NOTRUN]

  [Transactions that handle all errors properly should behave as expected when an explicit commit is called in an onerror handler.]
    expected:
      if (os == "win") and debug and (processor == "x86_64") and swgl: [NOTRUN, PASS]
      if (os == "win") and debug and (processor == "x86_64") and not swgl: [PASS, NOTRUN]
      if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]

  [A committed transaction becomes inactive immediately.]
    expected:
      if (os == "win") and not debug: [PASS, NOTRUN]

  [commit() on a version change transaction does not cause errors.]
    expected:
      if (os == "win") and not debug: [PASS, TIMEOUT]