-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraceKit can now be used on frames #68
Open
aquadk
wants to merge
17
commits into
csnover:master
Choose a base branch
from
aquadk:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9bf8709
TraceKit can now be used on frames
aquadk 1ba9d85
rename param
aquadk a182223
removed _
aquadk 93a7322
Added local value for window pointer
aquadk 69b165e
Set theme jekyll-theme-tactile
aquadk 343dc39
Doc and better names on function arguments
aquadk 0645272
Doc and return value
aquadk 7453eba
Merge branch 'master' into master
aquadk 3577701
Validates better with typescript now.
altru-ist 9b0c75d
Changed fra grunt to gulp
altru-ist 66aa36c
Updated karma/ jasmine with chrome for debugging
altru-ist c17ff27
jsdoc output to doc folder
altru-ist c4f0d94
VS code config for typescript
altru-ist ca67a8f
Only use oldhandler if there is one.
altru-ist 7f870a5
Merge branch 'master' into master
aquadk f416dd1
Merge branch 'master' of https://github.com/aquadk/TraceKit
altru-ist 6864a38
Added code to doc, about Iframe
altru-ist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"name": "Attach Karma Chrome", | ||
"address": "localhost", | ||
"port": 9333, | ||
"pathMapping": { | ||
"/": "${workspaceRoot}/", | ||
"/base/": "${workspaceRoot}/" | ||
}, | ||
"webRoot": "${workspaceRoot}/" | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "Test", | ||
"sourceMaps": true, | ||
"webRoot": "${workspaceRoot}/", | ||
"url": "http://localhost:9333/debug.html", | ||
"runtimeArgs": [ | ||
"--headless" | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* jshint esversion: 6 */ | ||
/* jshint node: true */ | ||
const gulp = require('gulp'); | ||
const Server = require('karma').Server; | ||
const jshint = require('gulp-jshint'); | ||
const bump = require('gulp-bump'); | ||
|
||
const srcCode = ['./tracekit.js']; | ||
/** | ||
* Run test once and exit | ||
*/ | ||
gulp.task('test', function (done) { | ||
new Server({ | ||
configFile: __dirname + '/karma.conf.js', | ||
singleRun: true | ||
}, done).start(); | ||
}); | ||
|
||
/** | ||
* Watch for file changes and re-run tests on each change | ||
*/ | ||
gulp.task('tdd', function (done) { | ||
new Server({ | ||
configFile: __dirname + '/karma.conf.js' | ||
}, done).start(); | ||
}); | ||
|
||
/** | ||
* Watch for file changes and re-run tests on each change | ||
*/ | ||
gulp.task('tddchrome', function (done) { | ||
new Server({ | ||
configFile: __dirname + '/karma.conf.chrome.js' | ||
}, done).start(); | ||
}); | ||
|
||
// We do this over using include/exclude to make everything feel gulp-like! | ||
gulp.task('doc', function (cb) { | ||
let jsdoc = require('gulp-jsdoc3'); | ||
|
||
let config = require('./jsdoc.conf.json'); | ||
gulp.src(['README.md'].concat(srcCode), { | ||
read: false | ||
}) | ||
.pipe(jsdoc(config, cb)); | ||
}); | ||
|
||
|
||
gulp.task('lint', function () { | ||
return gulp.src(['./tracekit.js', './Gulpfile.js']) | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')); | ||
}); | ||
|
||
|
||
// Update bower, component, npm at once: | ||
gulp.task('bump', function () { | ||
gulp.src(['package.json', 'bower.json', 'appveyor.yml']) | ||
.pipe(bump({ | ||
type: 'patch' | ||
})) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
|
||
|
||
// Update bower, component, npm at once: | ||
gulp.task('bump-minor', function () { | ||
gulp.src(['package.json', 'bower.json', 'appveyor.yml']) | ||
.pipe(bump({ | ||
type: 'minor' | ||
})) | ||
.pipe(gulp.dest('./')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
theme: jekyll-theme-tactile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,9 @@ | |
}, | ||
"plugins": [ | ||
"plugins/markdown" | ||
] | ||
], | ||
"opts": { | ||
"destination": "./doc/", | ||
"recurse": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Karma configuration | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
plugins: [ | ||
'karma-phantomjs-launcher', | ||
'karma-jasmine', | ||
'karma-chrome-launcher' | ||
], | ||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'tracekit.js', | ||
'spec/**/*.js' | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
}, | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port: 9333, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
|
||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: ['ChromeDebugging'], | ||
|
||
customLaunchers: { | ||
ChromeDebugging: { | ||
base: 'Chrome', | ||
flags: ['--remote-debugging-prt=9333'], | ||
debug: true | ||
} | ||
}, | ||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: false | ||
}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,25 @@ | |
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"grunt": "1.0.1", | ||
"grunt-bump": "^0.8.0", | ||
"grunt-cli": "1.2.0", | ||
"grunt-contrib-jasmine": "1.1.0", | ||
"grunt-contrib-jshint": "1.1.0", | ||
"grunt-jsdoc": "2.1.0", | ||
"jasmine": "2.6.0", | ||
"jasmine-core": "2.6.4", | ||
"karma": "1.7.0", | ||
"karma-jasmine": "1.1.0", | ||
"gulp": "3.9.1", | ||
"gulp-jsdoc3": "^2.0.0", | ||
"gulp-jshint": "^2.1.0", | ||
"jasmine": "3.1.0", | ||
"jasmine-core": "3.1.0", | ||
"jsdoc": "3.5.5", | ||
"jshint": "^2.9.5", | ||
"karma": "2.0.4", | ||
"karma-chrome-launcher": "2.2.0", | ||
"karma-jasmine": "1.1.2", | ||
"karma-phantomjs-launcher": "1.0.4", | ||
"phantomjs-prebuilt": "2.1.14" | ||
"phantomjs-prebuilt": "2.1.16" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
"test": "gulp test" | ||
}, | ||
"typings": "tracekit.d.ts", | ||
"author": "Blake Niemyjski <[email protected]>" | ||
"author": "Blake Niemyjski <[email protected]>", | ||
"dependencies": { | ||
"gulp-bump": "^3.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"spec_dir": "spec", | ||
"spec_files": [ | ||
"*[sS]pec.js" | ||
], | ||
"helpers": [ | ||
"../spec/fixtures/captured-errors.js", | ||
"../tracekit.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to expose this private var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so.