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.19 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.18 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.17 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.16 app/drivers/chrome/spec/spec/debug_spec.js
flok-0.0.14 app/drivers/chrome/spec/spec/debug_spec.js