Sha256: c0f2a0b16540c83ba4951143de41052260b6e7046050c57e0100db389dc22d73

Contents?: true

Size: 784 Bytes

Versions: 85

Compression:

Stored size: 784 Bytes

Contents

//Testing the debug view (when if_init_view is called without an existing prototype)

QUnit.test("When if_init_view is called without a view, a view is forged", function(assert) {
  //var done = assert.async();

  $("body").append("<div id='prototypes'></div><div id='root'></div>")

  if_init_view("my_test_view", {}, 0, ["main", "content"]);

  //Should have 1 thing in the prototypes
  assert.equal($("#prototypes .view[data-name='my_test_view']").length, 1, "Matches");

  //It should have a spot named content
  assert.equal($("#prototypes .view[data-name='my_test_view'] .spot[data-name='content']").length, 1, "Matches");

  //Should not have a main spot though
  assert.equal($("#prototypes .view[data-name='my_test_view'] .spot[data-name='main']").length, 0, "Matches");
});

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
flok-0.0.105 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.103 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.102 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.101 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.100 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.99 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.98 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.97 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.96 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.95 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.94 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.93 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.92 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.91 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.90 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.89 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.88 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.87 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.86 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.85 app/drivers/chrome/spec/spec/debug_spec.js