<NME> ModelOperationsTest.js
<BEF> ADDFILE
<MSG> TBIO-405: Merging tests

<DFF> @@ -0,0 +1,61 @@
+test(
+  'ModelOperationsTest',
+
+  [
+    'ephox.peanut.Fun',
+    'ephox.scullion.Struct',
+    'ephox.snooker.model.ModelOperations'
+  ],
+
+  function (Fun, Struct, ModelOperations) {
+    var nu = {
+      lead: Struct.immutable('cell', 'rowspan', 'colspan'),
+      bounds: Struct.immutable('startRow', 'startCol', 'finishRow', 'finishCol')
+    };
+
+    // Test basic merge.
+    (function () {
+      var check = function (expected, grid, bounds, lead) {
+        var actual = ModelOperations.merge(grid, bounds, lead, Fun.tripleEquals);
+        assert.eq(expected, actual);
+      };
+
+      check([], [], nu.bounds(0, 0, 1, 1), 'a');
+      check([[ 'a', 'a' ]], [[ 'a', 'b' ]], nu.bounds(0, 0, 0, 1), 'a');
+      check(
+        [
+          [ 'a', 'a' ],
+          [ 'a', 'a' ]
+        ],
+        [
+          [ 'a', 'b' ],
+          [ 'c', 'd' ]
+        ], nu.bounds(0, 0, 1, 1), 'a');
+    })();
+
+    // Test basic unmerge.
+    (function () {
+
+    })();
+
+    // Test basic insert column
+    (function () {
+
+    })();
+
+    // Test basic insert row
+    (function () {
+
+    })();
+
+    // Test basic delete column
+    (function () {
+
+    })();
+
+    // Test basic delete row
+    (function () {
+
+    })();
+  }
+);
\ No newline at end of file

{'addition_count': 61, 'commit_subject': 'TBIO-405: Merging tests', 'deletion_count': 0, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'tinymce/tinymce'}