Bug 1226398 - Part 1: Remove remaining legacy generator from dom/indexedDB/test/. r=jaws

This commit is contained in:
Tooru Fujisawa 2017-02-11 11:47:56 +09:00
parent 5f324eb9dd
commit 5bc59c92e3
29 changed files with 29 additions and 29 deletions

View file

@ -44,7 +44,7 @@ function clearAllDatabases(callback) {
var testHarnessGenerator = testHarnessSteps(); var testHarnessGenerator = testHarnessSteps();
testHarnessGenerator.next(); testHarnessGenerator.next();
function testHarnessSteps() { function* testHarnessSteps() {
function nextTestHarnessStep(val) { function nextTestHarnessStep(val) {
testHarnessGenerator.next(val); testHarnessGenerator.next(val);
} }

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const url = "ftp://ftp.example.com"; const url = "ftp://ftp.example.com";
const name = "test_bad_origin_directory.js"; const name = "test_bad_origin_directory.js";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const dbName1 = "upgrade_test"; const dbName1 = "upgrade_test";
const dbName2 = "testing.foobar"; const dbName2 = "testing.foobar";

View file

@ -7,7 +7,7 @@ var disableWorkerTest = "Need a way to set temporary prefs from a worker";
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const spec = "http://foo.com"; const spec = "http://foo.com";
const name = const name =

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const Bob = { ss: "237-23-7732", name: "Bob" }; const Bob = { ss: "237-23-7732", name: "Bob" };

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = this.window ? window.location.pathname : const name = this.window ? window.location.pathname :
"test_database_close_without_onclose.js"; "test_database_close_without_onclose.js";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/default/http+++localhost // This one lives in storage/default/http+++localhost

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = "test_file_copy_failure.js"; const name = "test_file_copy_failure.js";
const objectStoreName = "Blobs"; const objectStoreName = "Blobs";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
// Test for IDBKeyRange and indexedDB availability in ipcshell. // Test for IDBKeyRange and indexedDB availability in ipcshell.
run_test_in_child("./GlobalObjectsChild.js", function() { run_test_in_child("./GlobalObjectsChild.js", function() {

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
let ioService = let ioService =
Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = "Splendid Test"; const name = "Splendid Test";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/default/http+++www.mozilla.org // This one lives in storage/default/http+++www.mozilla.org

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
let uri = Cc["@mozilla.org/network/io-service;1"]. let uri = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService). getService(Ci.nsIIOService).

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const databaseName = const databaseName =
("window" in this) ? window.location.pathname : "Test"; ("window" in this) ? window.location.pathname : "Test";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/permanent/chrome // This one lives in storage/permanent/chrome

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/permanent/chrome // This one lives in storage/permanent/chrome

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const dbNames = [ const dbNames = [
"No files", "No files",

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
// This lives in storage/default/http+++www.mozilla.org // This lives in storage/default/http+++www.mozilla.org
const url = "http://www.mozilla.org"; const url = "http://www.mozilla.org";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = this.window ? window.location.pathname : "Splendid Test"; const name = this.window ? window.location.pathname : "Splendid Test";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = "Splendid Test"; const name = "Splendid Test";
const version = 1; const version = 1;

View file

@ -7,7 +7,7 @@ var disableWorkerTest = "Need a way to set temporary prefs from a worker";
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const spec = "http://foo.com"; const spec = "http://foo.com";
const name = const name =

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const testName = "schema18upgrade"; const testName = "schema18upgrade";
const testKeys = [ const testKeys = [

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const testName = "schema21upgrade"; const testName = "schema21upgrade";
const testKeys = [ const testKeys = [

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/default/http+++www.mozilla.org // This one lives in storage/default/http+++www.mozilla.org

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = "test_snappyUpgrade.js"; const name = "test_snappyUpgrade.js";
const objectStoreName = "test"; const objectStoreName = "test";

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const openParams = [ const openParams = [
// This one lives in storage/default/http+++www.mozilla.org // This one lives in storage/default/http+++www.mozilla.org

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = this.window ? const name = this.window ?
window.location.pathname : window.location.pathname :

View file

@ -5,7 +5,7 @@
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = "test_wasm_recompile.js"; const name = "test_wasm_recompile.js";

View file

@ -12,7 +12,7 @@ if (!this.window) {
var testGenerator = testSteps(); var testGenerator = testSteps();
function testSteps() function* testSteps()
{ {
const name = this.window ? window.location.pathname : "Splendid Test"; const name = this.window ? window.location.pathname : "Splendid Test";