Skip to content

Instantly share code, notes, and snippets.

View coderberry's full-sized avatar

Eric Berry coderberry

View GitHub Profile
$tab-border-color: $tabs-navigation-bg-color;
dl.tabs {
border-bottom: 1px solid $tab-border-color;
dd {
position: relative;
bottom: -1px;
border-top: 1px solid $tab-border-color;
border-left: 1px solid $tab-border-color;
border-right: 1px solid $tab-border-color;
/* Put your CSS here */
html, body {
margin: 20px;
}
var Router = Ember.Router.extend();
Router.map(function() {
this.resource('lti-apps', { path: '/' });
this.resource('lti-app', { path: '/:toolId' }, function() {
this.resource('lti-app.browse', { path: '/browse' }, function() {
this.route('show', { path: '/:folderChain' });
});
this.resource('lti-app.search', { path: '/search' }, function() {
this.route('results', { path: '/results/:searchText' });
import ajax from 'appkit/utils/ajax';
import Video from 'appkit/libs/media/video';
import Image from 'appkit/libs/media/image';
import Quiz from 'appkit/libs/media/quiz';
import Folder from 'appkit/libs/media/folder';
var Browse = Ember.Object.extend({
folders : null,
items : null,
define("test/fixtures", ["exports"], function(__exports__) {
"use strict";
__exports__["default"] = {
search_page_1: { __FIXTURE_DATA_HERE__ },
search_page_2: { __FIXTURE_DATA_HERE__ },
search_page_3: { __FIXTURE_DATA_HERE__ }
};
});
// test-helper.js
var EmbedBtnDropdownComponent = Ember.Component.extend({
classNames: 'return-types',
actions: {
embedItem: function(returnType) {
this.sendAction('embedItem', returnType);
}
}
});
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
Ember.testing = true;
window.startApp = require('appkit/tests/helpers/start-app')['default'];
window.isolatedContainer = require('appkit/tests/helpers/isolated-container')['default'];
window.fakeServer = require('appkit/tests/helpers/fake-server')['default'];
function exists(selector) {
return !!find(selector).length;
import Search from 'appkit/libs/search';
module('Unit: lib/search', {
setup: function() {},
teardown: function() {}
});
test('ajaxData', function() {
var search = Search.create();
var ad = search.get('ajaxData');
Ember.Test.registerAsyncHelper('submitForm',
function(app, selector, context) {
var $el = findWithAssert(selector, context);
Ember.run(function() {
$el.submit();
});
}
);
// Example Usage