Permalink
Browse files

Add experimental `elementsUnderPointer` renderer option

  • Loading branch information...
1 parent 98076cd commit 11e6688b00241ee095b7f6f77a1cbb479c31fa5a @davidaurelio davidaurelio committed Feb 26, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −0 src/bootstrapper/player.js
  2. +3 −2 test/player-spec.js
@@ -62,6 +62,7 @@ function(EventEmitter, RendererController, AssetController, tools, URI, version)
var context = new this.RunnerContext(this.runnerUrl, doc, options.baseUrl);
var renderer = new this.Renderer(node, width, height, {
allowEventDefaults: options.allowEventDefaults,
+ elementsUnderPointer: options.elementsUnderPointer,
fpsLog: options.fpsLog,
disableContextMenu: options.disableContextMenu
});
View
@@ -134,12 +134,13 @@ define([
expect(funcSetup(createMockNode())).toBeInstanceOf(player.RendererController);
});
- it('passes node, width, height, allowEventDefaults and fpsLog arguments to the renderer', function () {
- var node = createMockNode(), width = 162, height = 100, options = {allowEventDefaults: true, fpsLog: true};
+ it('passes node, width, height, allowEventDefaults, elementsUnderPointer, and fpsLog arguments to the renderer', function () {
+ var node = createMockNode(), width = 162, height = 100, options = {allowEventDefaults: true, elementsUnderPointer: true, fpsLog: true};
funcSetup(node, width, height, options);
expect(MockRendererConstructor).toHaveBeenCalledWith(node, width, height, {
allowEventDefaults: options.allowEventDefaults,
+ elementsUnderPointer: true,
fpsLog: options.fpsLog
});
});

0 comments on commit 11e6688

Please sign in to comment.