diff --git a/bundles.json b/bundles.json new file mode 100644 index 0000000000..39a762ea2d --- /dev/null +++ b/bundles.json @@ -0,0 +1,3 @@ +[ + "platform/framework" +] \ No newline at end of file diff --git a/platform/framework/src/Temporary.js b/platform/framework/src/Temporary.js new file mode 100644 index 0000000000..df1541b175 --- /dev/null +++ b/platform/framework/src/Temporary.js @@ -0,0 +1,23 @@ +/** + * Created by vwoeltje on 10/30/14. + */ + + +/*global define*/ + +define( + [], + function () { + "use strict"; + + function Temporary() { + return { + someMethod: function () { + return "returnValue"; + } + }; + } + + return Temporary; + } +); \ No newline at end of file diff --git a/platform/framework/test/TemporarySpec.js b/platform/framework/test/TemporarySpec.js new file mode 100644 index 0000000000..2d1bfef41c --- /dev/null +++ b/platform/framework/test/TemporarySpec.js @@ -0,0 +1,17 @@ +/*global define,describe,it,expect*/ + +define( + ["../src/Temporary"], + function (Temporary) { + "use strict"; + + describe("Temporary class", function () { + var temporary = new Temporary(); + + it("has a method with a return value", function () { + expect(temporary.someMethod()).toEqual("returnValue"); + }); + }); + + } +); \ No newline at end of file diff --git a/platform/framework/test/suite.json b/platform/framework/test/suite.json new file mode 100644 index 0000000000..c09c9fdfda --- /dev/null +++ b/platform/framework/test/suite.json @@ -0,0 +1,3 @@ +[ + "Temporary" +] diff --git a/test.html b/test.html index 4815c852ba..f946be926f 100644 --- a/test.html +++ b/test.html @@ -1,13 +1,135 @@ -
- - - - - + + + + +