Skip to content

Instantly share code, notes, and snippets.

View EragonJ's full-sized avatar
🇯🇵
Learning Japanese

Ryu | Chia-Lung Chen EragonJ

🇯🇵
Learning Japanese
View GitHub Profile
<link type="text/css" rel="stylesheet" href="dist/trip.nodep.min.css">
diff --git a/apps/settings/test/unit/icc_test.js b/apps/settings/test/unit/icc_test.js
index a6bd1d8..fc0194c 100644
--- a/apps/settings/test/unit/icc_test.js
+++ b/apps/settings/test/unit/icc_test.js
@@ -62,13 +62,6 @@ suite('STK (App menu) >', function() {
mocksHelper = new MocksHelper(mocksForIccApp);
mocksHelper.suiteSetup();
- HtmlImports.populate(function() {
- window.addEventListener('iccPageLoaded', function onLoaded(event) {
diff --git a/apps/settings/test/unit/panels/root/stk_item_test.js b/apps/settings/test/unit/panels/root/stk_item_test.js
index 4b31d2d..7ecd498 100644
--- a/apps/settings/test/unit/panels/root/stk_item_test.js
+++ b/apps/settings/test/unit/panels/root/stk_item_test.js
@@ -1,20 +1,10 @@
'use strict';
-/* globals MocksHelper, MockNavigatorSettings */
requireApp('settings/shared/test/unit/load_body_html_helper.js');
-require('/shared/test/unit/mocks_helper.js');
-
diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js
index 730acd0..c14bf22 100644
--- a/dom/wifi/WifiWorker.js
+++ b/dom/wifi/WifiWorker.js
@@ -3232,16 +3232,31 @@ WifiWorker.prototype = {
this.setWifiApEnabled(enabled, this.requestDone.bind(this));
}.bind(this));
- if (!enabled) {
- this.queueRequest({command: "setWifiEnabled", value: true}, function(data) {
if (wifiManager) {
this._suspend('wifi');
// make sure ril.ignore.mutex is set before turning off wifi-tethering
var req = SettingsListener.getSettingsLock().set({
'ril.ignore.mutex': true
});
req.onsuccess = function() {
SettingsListener.getSettingsLock().set({
if (true) {
var s = document.querySelector('xxxx').setAttribute('xxxx',
'xxxxx');
}
adb shell "stop b2g"
adb shell "cd /data/b2g/mozilla/*.default/ && echo 'user_pref(\"devtools.debugger.forbid-certified-apps\", false);' >> prefs.js"
adb shell "start b2g"
@EragonJ
EragonJ / readme.md
Last active August 21, 2019 09:26
Tips you need to know when contributing to Mozilla/Gaia

Why this list ?

There are many times we have contributors who want to contribute to Mozilla/Gaia, but we always would meet some new friends who are not so familiar with our working flows and Git.

In spite of keep telling them how to do that every time, I think it would be better to record screencasts about how to do that step by step. By following these instructions, you can easily jump into the ecosystem of Mozilla without too many obstacles.

Please fasten your seatbelt and let's start to hack :)

How to rebase and fix conflicts ?

@EragonJ
EragonJ / gist:fa23ef6d5c794d72ee01
Last active August 29, 2015 14:03
This is a language list written in its own language

Check the link here

@EragonJ
EragonJ / gist:11181371
Created April 22, 2014 14:29
example from mdn
function list() {
return Array.prototype.slice.call(arguments);
}
var list1 = list(1, 2, 3); // [1, 2, 3]
// Create a function with a preset leading argument
var leadingThirtysevenList = list.bind(undefined, 37);
var list2 = leadingThirtysevenList(); // [37]